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-05 22:26:24


Sergey Sadovnikov <flex_ferrum <at> artberg.ru> writes:
[snip]
> I understand, what 'using' is quite dangerous directive, but I use it
> only in implementation files and never in headers. It makes source
> code more shortly and readable.

...and ambiguous.

[snip]

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.

-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