
17 Jul
2008
17 Jul
'08
5:26 p.m.
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