
14 Jan
2005
14 Jan
'05
7:35 a.m.
Peter Dimov wrote:
From: "Vladimir Prus" <ghost@cs.msu.su> 2. What compilers did you test your modification with? I recall that std::tolower vs. tolower thing was hard to get working everywhere, so I'd rather no touch it unless it's broken somewhere.
This is how I deal with it:
void function_using_tolower() { using namespace std; // use unqualified tolower }
This is pretty much what I do. Except that "using namespace std" is outside of the function -- this happens in cpp file so I don't care about namespace pollution.
I haven't found a better way to tackle the issue (when using the <cxx> headers). In .cpp files, <xx.h> is an option.
You're right. I might use them. - Volodya