That's one point where I agree with Leigh. If you want to switch
between namespaces, you should rather use (A) typedefs, if its just
one definition, or (B) a define, if everything should be switched, or
(C) even rename the namespace:
typedef std::cout my_cout;
#define MYSTD std
namespace mystd = std;
If you use the typedef / define, you'll still only say it once.
Of course, the whole discussion is quite superfluous. If "using
namespace std" does your project no harm, there is no reason not to
use it. It's rather bad style, since there are projects where it will
do harm. So as a guideline, one should qualify everything with the
Let's say no more about it.