Is it possible to have a using
directive, the scale of which is limited to one class?
Note that what I want to use is not contained in the parent of the current class.
For simplicity, suppose the following:
#include<vector> class foo { using std::vector; //Error, a class-qualified name is required }
Another interesting thing: if using
directives are included, if the header is included:
MyClassFoo.h: #include<vector> using std::vector; //OK class foo { }
And in
NewHeader.h #include "MyClassFoo.h" ...
how can i prevent " using std::vector
" to be visible here?
source share