oops, sorry for this.
Yes, you're true.
That's namespace stuff.
I don't like writing "using namespace"
Because, you take the habit to always use it even in header files (.h or .hpp file).
If you do, it means anyone including your header file is also having all the using namespace lines. And this could be dangerous, if the user also use namespaces.
Let's say you use your own namespace called IPV (InputValidation) and another user including your header files also use a namespace called IPV.
then, this user may have clashes with classes names. If you have a class named let's say Validator defined in your IPV namespace and the user is also define the same class Validator in his namespace IPV, this is going to make problems.
your files:
Validator.hpp
1 2 3 4 5 6 7 8
|
...
namespace IPV {
...
class Validator {
...
};
...
}
|
Interface.hpp
1 2 3 4
|
#include <Validator.hpp>
...
blabla
...
|
the user file:
Validation.hpp
1 2 3 4 5 6 7 8 9
|
#include <Interface.hpp>
namespace IPV {
...
class Validator {
...
};
...
}
|
But this occurs in big c++ projects.
So, I took the habit no to use "using namespace"