Anybody could explain this:
On Sun 10, CC version is Sun C++ 5.7 2005/01/07
I have this code:
string mystr("ABC"), ss("123");
mystr.append("XYZ" + ss);
The compiler doesn't print any warning on append() line, but indeed this is a bug I am currently suffering, could anybody know how the Sun's CC compiler explain the datatype of "XYZ"+ss to append()? Is this a valid syntex?
Your answers will help me to decide if I need to complain the bug to Sun.
Thanks,
M.
On Sun 10, CC version is Sun C++ 5.7 2005/01/07
I have this code:
string mystr("ABC"), ss("123");
mystr.append("XYZ" + ss);
The compiler doesn't print any warning on append() line, but indeed this is a bug I am currently suffering, could anybody know how the Sun's CC compiler explain the datatype of "XYZ"+ss to append()? Is this a valid syntex?
Your answers will help me to decide if I need to complain the bug to Sun.
Thanks,
M.