How to make a namespace alias available only to a class
Namespace alias in the class definition is illegal, as specified by the language specification. Its allowed in only in namespace scope or function scope. You can make an alias at the namespace scope. But this will create a permanent alias which can be used from other files as well. However, the solution is simple: you …