Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2008-07-17 13:26:32


>> If you use "using <namespace>" you could still have aproblem
>> if one of your names accidently matches something this the
>> namespace being used. For this reason, I don't particularly
>> like using "using <namespace>" myself but rather just
>> spell out the whole thing like boost::filesystem:: ...
>>
>
>
> Here the user do not put any on into the std namespace.
> using namespace std;
> struct shared_ptr {};
>
> My question was, How the new C++0x standard library avoid regression
> on the user code when the user migrates to C++0x ?

I don't think it can. That is why I personally prefer:

    boost::shared_ptr ..
or
  std::shared_ptr

to

using namespace std;

then this problem won't occur.

Robert Ramey


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