I expected to be able to use a namespace alias in a class declaration but get a compiler syntax error.
struct MyClass { namespace abc = a_big_namespace;
The scope of a namespace alias is a code block.
So you can put it in any code block.
BUT, you can't put it inside a class, because that will mean it's a member of the class. A namespace alias can't be a member.
More about namespace aliases:
What is the scope of a namespace alias in C++? Namespaces