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>> writes:
> 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.


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.


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