I am looking for the way to use namespaces more efficiently. At this point I use 'glm' and 'std' namespace, and I have found that it cannot be included from one header to the rest like this
base.h
#ifndef _BASE_H_ #define _BASE_H_ // included headers ... ... // rest of declarations ... // namespaces using namespace glm; using namespace std; #endif
app.h
#include "base.h" // rest of the code goes here
When I do this I get compiler error around namespaces, since I don't like things like 'glm::' and 'std::' in almost every line of code.
Is there a way to use namespaces so they are declared only in one header instead of every header that uses them?






