This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

differences between Linux and Solaris



There is an odd compile difference between Linux and Solaris.


//this works on Solaris:
std::wstring::size_type mult;

//this works on Linux:
long mult;


std::wstring theString;
wchar_t ch = L'a';
bool isUpper = true;
mult = 1;

theString.assign(mult, isUpper ? towupper(ch) : ch);



This isn't a big deal since there is a simple workaround: move the 'towupper' call to a different line.


-Tony


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]