阅读背景:

标准A :: N :: f的最外层块范围是在§3.4.1/ 6的示例中讨论的

来源:互联网 

Example at 3.4.1/6

3.4.1 / 6的例子

namespace A {
   namespace N {
      void f();
   }
}
void A::N::f() {
   i = 5;
   // The following scopes are searched for a declaration of i:
   // 1) outermost block scope of A::N::f, before the use of i
   // 2) scope of namespace N
   // 3) scope of namespace A
   // 4) global scope, before the definition of A::N::f
}
namespace A



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: