I am writing a small library. Declaration of my classes, functions and others, that uses standard library are in a header file. I know that putting "using namespace" into header is a bad practic. May I put my code in separate namespace and then put "using namespace" into it? Like this:
// header.h
namespace My
{
using namespace std;
// declarations
}
Will it be good?
using namespaceanywhere.using namespace stdanywhere!using namespace stdhere's a detailed post on why not to do that