I have a quick question about. Assume I have the following files:
file.h
Code:
...
using namespace std;
...
file.cpp
Code:
...
#include file.h
...
using namespace std;
....
file2.h
Code:
...
using namespace std;
...
file2.cpp
Code:
...
#include file.h
#include file2.h
...
using namespace std;
....
Is there any problem with something like that or does the compiler ignore it when it sees you trying to use the same namespace more than once? Is it bad programming practice? I did a quick search and couldn't find what I was looking for. Thanks!