Nested namespaces

前端 未结 5 1737
慢半拍i
慢半拍i 2020-11-30 01:08

I\'ve got something like this:

namespace n1
{
    namespace n2
    {
        class foo{}
    }
}
5条回答
  •  一生所求
    2020-11-30 02:01

    You cannot write this, as n2 is inside of n1. If you want to access the n2 namespace, you can try typing using n2 = n1.n2 at the beginning of your other file.

提交回复
热议问题