Question Status
- This question is open for discussion
Similar Questions
Question: Namespaces in Header files
- Posted By: fvdesign
- Subject: Computer Science
- Report? Flag for Abuse
Namespaces in Header files
Should you ever using the "using namespace" declaration in a header file. It would make certain things so much easier.
Rating:
7.0
- Posted By: zeno
- Report? Flag for Abuse
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.