c++ - Injected-class-name denoted incomplete and complete type -
consider next code snippet:
class { void foo(){ a; }//1. ok, because finish type here int b[a::c];//2. error, because incomplete type denoted not contain c member. static const int c = 6; } with respect behavior assume in //1 , in //2 refers different entity. during name lookup process (3.4.1, unqualified name lookup) a same injected class name found both in //1 , in //2. curious.
can explain that?
i find normative reference standard.
c++ class language-lawyer
No comments:
Post a Comment