git grep 'using namespace' **.hpp
"using namespace" at global scope a header violates the cpp core guidelines:
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rs-using-directive
"using namespace" in namespace scope is not called out but it is equally frowned upon because unexpected side effects:
foo.hpp:
namespace foo
{
using namespace std;
};
main.cpp:
#include foo.hpp
using namespace foo; // oops - I have now pulled in namespace std?!?
git grep 'using namespace' **.hpp
"using namespace" at global scope a header violates the cpp core guidelines:
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rs-using-directive
"using namespace" in namespace scope is not called out but it is equally frowned upon because unexpected side effects:
foo.hpp:
main.cpp: