C++ Coding Standard #59 demands that using namespace should not appear in a header file.
I would say that even though declaring an using namespace in an function technically violates this rule it won't inflict any problems to my knowledge.
Subcheck currently does not check in what context exactly the using namespace is declared and considers it wrong even if it is in a function scope
C++ Coding Standard #59 demands that
using namespaceshould not appear in a header file.I would say that even though declaring an
using namespacein an function technically violates this rule it won't inflict any problems to my knowledge.Subcheck currently does not check in what context exactly the
using namespaceis declared and considers it wrong even if it is in a function scope