6 Nov
2008
6 Nov
'08
7:10 p.m.
Roman Perepelitsa
2008/11/6 Ryan Gallagher
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