File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 7477
7477
\pnum
7478
7478
A \grammarterm {using-enum-declarator}
7479
7479
names the set of declarations found by
7480
- lookup\iref {basic.lookup.unqual,basic.lookup.qual }
7481
- for the \grammarterm {using-enum-declarator}.
7480
+ type-only lookup\iref {basic.lookup.general }
7481
+ for the \grammarterm {using-enum-declarator}\iref { basic.lookup.unqual,basic.lookup.qual } .
7482
7482
The \grammarterm {using-enum-declarator}
7483
7483
shall designate a non-dependent type
7484
7484
with a reachable \grammarterm {enum-specifier}.
7485
+ \begin {example }
7486
+ \begin {codeblock }
7487
+ enum E { x };
7488
+ void f() {
7489
+ int E;
7490
+ using enum E; // OK
7491
+ }
7492
+ using F = E;
7493
+ using enum F; // OK
7494
+ template<class T> using EE = T;
7495
+ void g() {
7496
+ using enum EE<E>; // OK
7497
+ }
7498
+ \end {codeblock }
7499
+ \end {example }
7485
7500
7486
7501
\pnum
7487
7502
A \grammarterm {using-enum-declaration}
You can’t perform that action at this time.
0 commit comments