Question Status

  • This question is open for discussion

Similar Questions

Question: Namespaces in Header files

Namespaces in Header files

Should you ever using the "using namespace" declaration in a header file. It would make certain things so much easier.

Date Posted: August 26, 2007 Tagged Under: C++ . programming
Rating:
7.0

In general, you shouldn't use "using namespace" in a header file as it will lead to namespace pollution. Any file that includes that header file will also get the namespace declaration which could lead to adverse effects.