V
vsgdp
Hi,
Can you put a "using namespace" inside a class like this:
// c.h
#include <string>
class C
{
public:
using namespace std;
string myString;
};
I don't want to put it outside the class because then any .cpp file
that includes this header file will also get the using namespace std.
I just want to use using namespace std in my code, but not force
client code to use it.
Can you put a "using namespace" inside a class like this:
// c.h
#include <string>
class C
{
public:
using namespace std;
string myString;
};
I don't want to put it outside the class because then any .cpp file
that includes this header file will also get the using namespace std.
I just want to use using namespace std in my code, but not force
client code to use it.