Multiple namespace declaration in C++

Viewed 25771

Is it legal to replace something like this:

namespace foo {
   namespace bar {
      baz();
   }
}

with something like this:

namespace foo::bar {
   baz();
}

?

7 Answers
Related