I have a little confusion about namespaces. Here is what I know. Usually, if you have namespaces like this in code
namespace foo { namespace gfoo { class apple {..}; } }
Now using the following code
using namespace foo::gfoo;
you can directly access the apple class without having to foo::gfoo::apple namespace in front of the class as such foo::gfoo::apple .
Now I have seen in some code examples, for example
namespace qi = boost::spirit::qi
then in the methods it is used as
void someMethod() { using qi::char_ }
Now my question is what is the goal of doing something like namespace qi = boost::spirit::qi
source share