I don''t know of any "real" quick ways of doing it, but you can always cheat using macros:
#define NAMESPACE2_BEGIN(outer, inner) \ namespace outer { \ namespace inner {#define NAMESPACE2_END() \ } \ }// To use them:NAMESPACE2_BEGIN(ProjectName, SubNamespace) // ...NAMESPACE2_END()
Or something like that.
I just write out the namespaces and just neglect to tab them out for large sections (the files I do that to have everything in a single namespace, so it''s not too confusing to read without the tabbing), it''s really not that bad
. I think the only C++ project I''m working on has namespaces nested as deeply as 5 levels in parts (most of that stuff is just implementations of interfaces though)...