This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
differences between Linux and Solaris
- From: "Anthony Feick" <afeick at hotmail dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 03 Sep 2002 11:26:55 -0500
- Subject: differences between Linux and Solaris
- Bcc:
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