With the following code, I get the message 'namespace_parent.h' does not need to be #included, which is incorrect.
parent.h
namespaceparent
{
classParent {};
}child.h
#include"namespace_parent.h"usingnamespaceparent;namespacechild
{
classChild : Parent {};
}The code compiles correctly but 'using namespace' in a header file is bad practice, so it might be better to give a warning that it is better to use full namespaces.
With the following code, I get the message
'namespace_parent.h' does not need to be #included, which is incorrect.parent.h
child.h
The code compiles correctly but 'using namespace' in a header file is bad practice, so it might be better to give a warning that it is better to use full namespaces.