Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-01-14 02:35:00


Peter Dimov wrote:

>> From: "Vladimir Prus" <ghost_at_[hidden]>
>> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk