Commit 0c7c54f
committed
[temp.mem.enum] Fix consistency with [temp.inst]
The example is inconsistent with [temp.inst] p3, which states the following:
"The implicit instantiation of a class template specialization causes
- the implicit instantiation of the declarations, but not of the definitions,
of [...] scoped member enumerations [...]; and
- the implicit instantiation of the definitions of [...]
unscoped member enumerations [...]"
Hence, the example can be fixed by either (1) omitting the instantiation or
(2) by replacing the unscoped with a scoped enumeration.
Since the implicit instantiation does not contribute to the point of
[temp.mem.enum], the inconsistency can be solved most easily with alternative (1).
Note: The example was originally taken from DR1206.1 parent b801b54 commit 0c7c54f
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2659 | 2659 | | |
2660 | 2660 | | |
2661 | 2661 | | |
2662 | | - | |
2663 | 2662 | | |
2664 | 2663 | | |
2665 | 2664 | | |
| |||
0 commit comments