Why is it forbidden to open multiple namespaces at a stretch?

前端 未结 2 2176
有刺的猬
有刺的猬 2021-02-13 01:39

It\'s possible to do using namespace foo::bar; (i.e., using the inner namespace without using the outer namespace first / at all), why does the standard forbid to d

2条回答
  •  -上瘾入骨i
    2021-02-13 01:58

    Why make compilers implement it when you could just do

    namespace foo { namespace bar {
    
    }}
    

提交回复
热议问题