From bece9883e1b0c29840d4dfac80dfc3d8478fe2c7 Mon Sep 17 00:00:00 2001 From: Ralph Tandetzky Date: Sat, 7 Mar 2015 20:14:23 +0100 Subject: [PATCH] Changed "Never use 'using' In a Header File" guideline. Changed it to "Never use 'using namespace' ...". Also added some more explanation. --- 03-Style.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/03-Style.md b/03-Style.md index 43e45c5..0ee0f28 100644 --- a/03-Style.md +++ b/03-Style.md @@ -90,9 +90,11 @@ int myFunc() which would be impossible if the function comment header used `/* */` -## Never Use `using` In a Header File +## Never Use `using namespace` In a Header File This causes the name space you are `using` to be pulled into the namespace of the header file. +It litters the own namespace and it may lead to name collisions in the future. +Writing `using namespace` in an implementation file is fine though. ## Include Guards