Boost logo

Boost Users :

Subject: Re: [Boost-users] shared_ptr and Visual Studio 2008 Express SP1
From: Ryan Gallagher (ryan.gallagher_at_[hidden])
Date: 2008-11-06 14:10:43

Roman Perepelitsa <roman.perepelitsa <at>> writes:
> 2008/11/6 Ryan Gallagher <ryan.gallagher <at>>
>> If you really don't want to qualify the names each place they're
>> used then try just adding "using std::tr1::shared_ptr;" after
>> all these locations where you already do "using namespace *".  
>> If I recall correctly, the using declaration will override the
>> names from the using directives thus disambiguating it.
> Unfortunately using declaration won't override using directive.

Actually, they do, but only when used at local scope. (At least
according to MSVC 9.0 express.) My post was still wrong, but moving
"using std::tr1::shared_ptr" to top of the offending functions would
resolve it. Still not the approach I'd go with myself.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at