6 Nov
2008
6 Nov
'08
3:26 a.m.
Sergey Sadovnikov
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