namespace MyClassSpace { namespace qux = boost::std::bar::baz::qux; class foo { // use qux:: }; } using MyClassSpace::foo; // lift 'foo' into the enclosing namespace
Just like most Boost libraries do, put all of their materials in a separate namespace and raise important identifiers in the boost namespace.
source share