Multiple namespace declaration in C++

后端 未结 7 1337
无人共我
无人共我 2020-12-28 17:30

Is it legal to replace something like this:

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

with something like this:



        
相关标签:
7条回答
  • 2020-12-28 18:20

    No; it's a syntax error.

    0 讨论(0)
提交回复
热议问题