I have a snippett of code that is supposed to work under GCC 3.3.2 and does under Redhat, however it gives me compiler errors of the GCC 2.95 days... I run testing and GCC -v shows 3.3.2, can anyone give me some information and/or pointers to some solutions?
Thanks, Brian #include "StudentRecord.h" #include<iostream> #include<string> #include<cctype> #include<iomanip> #include<algorithm> void StudentRecord::MakeCaseInsensitiveKey(void) { string key; key = lastName + " " + firstName; // transform(key.begin(), key.end(), key.begin(), tolower); // method explained in class above, however won't compile under GCC 3.3.2 Debian // reference for fix: // http://gethelp.devx.com/techtips/cpp_pro/10min/2002/Oct/10min1002-2.asp transform(key.begin(), key.end(), key.begin(), (int(*)(int)) toupper); } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]