|
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> gmail.com> writes:
>
>
> 2008/11/6 Ryan Gallagher <ryan.gallagher <at> gmail.com>
>> 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.
-Ryan
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net