File tree Expand file tree Collapse file tree 7 files changed +12
-19
lines changed Expand file tree Collapse file tree 7 files changed +12
-19
lines changed Original file line number Diff line number Diff line change 1776
1776
of that enumeration.
1777
1777
1778
1778
\pnum
1779
- If a \grammarterm {pseudo-destructor-name}\iref {expr.pseudo } contains a
1780
- \grammarterm {nested-name-specifier}, the \grammarterm {type-name}{s} are looked
1781
- up as types in the scope designated by the
1782
- \grammarterm {nested-name-specifier}. Similarly, in a
1783
- \grammarterm {qualified-id} of the form:
1779
+ In a \grammarterm {qualified-id} of the form:
1784
1780
1785
1781
\begin {ncbnf }
1786
- \opt {nested-name-specifier} class -name \terminal {::} \terminal {\~ } class -name
1782
+ \opt {nested-name-specifier} type -name \terminal {::} \terminal {\~ } type -name
1787
1783
\end {ncbnf }
1788
-
1789
- the second \grammarterm {class-name} is looked up in the same scope as the
1790
- first. \begin {example }
1791
-
1784
+ the second \grammarterm {type-name} is looked up in the same scope as the first.
1785
+ \begin {example }
1792
1786
\begin {codeblock }
1793
1787
struct C {
1794
1788
typedef int I;
1808
1802
p->AB::~AB(); // explicitly calls the destructor for \tcode {A}
1809
1803
}
1810
1804
\end {codeblock }
1811
- \end {example } \begin {note } \ref {basic.lookup.classref } describes how name
1812
- lookup proceeds after the \tcode {.} and \tcode {->} operators. \end {note }
1805
+ \end {example }
1806
+ \begin {note } \ref {basic.lookup.classref } describes how name
1807
+ lookup proceeds after the \tcode {.} and \tcode {->} operators.
1808
+ \end {note }
1813
1809
1814
1810
\rSec 3[class.qual]{Class members}
1815
1811
Original file line number Diff line number Diff line change 2384
2384
\begin {note }
2385
2385
\indextext {fundamental type!destructor and}%
2386
2386
The notation for explicit call of a destructor can be used for any scalar type
2387
- name\iref {expr.pseudo }.
2387
+ name\iref {expr.prim.id.dtor }.
2388
2388
Allowing this makes it possible to write code without having to know if a
2389
2389
destructor exists for a given type.
2390
2390
For example:
Original file line number Diff line number Diff line change 1529
1529
\grammarterm {simple-type-specifier} introduces
1530
1530
its \grammarterm {type-name}\iref {dcl.type.simple }.
1531
1531
If the \grammarterm {identifier} or \grammarterm {simple-template-id} resolves to a
1532
- \grammarterm {typedef-name} (\ref {dcl.typename } \ref {temp.names }),
1532
+ \grammarterm {typedef-name} (\ref {dcl.typedef }, \ref {temp.names }),
1533
1533
the \grammarterm {elaborated-type-specifier} is ill-formed.
1534
1534
\begin {note }
1535
1535
This implies that, within a class template with a template
Original file line number Diff line number Diff line change 6644
6644
a \tcode {reinterpret_cast}\iref {expr.reinterpret.cast };
6645
6645
6646
6646
\item
6647
- a pseudo-destructor call\iref {expr.pseudo };
6647
+ a pseudo-destructor call\iref {expr.prim.id.dtor };
6648
6648
6649
6649
\item
6650
6650
modification of an object~(\ref {expr.ass }, \ref {expr.post.incr },
Original file line number Diff line number Diff line change 230
230
if all operations provided to meet iterator category requirements
231
231
are constexpr functions, except for
232
232
\begin {itemize }
233
- \item a pseudo-destructor call\iref {expr.pseudo }, and
233
+ \item a pseudo-destructor call\iref {expr.prim.id.dtor }, and
234
234
\item the construction of an iterator with a singular value.
235
235
\end {itemize }
236
236
\begin {note }
Original file line number Diff line number Diff line change 3412
3412
3413
3413
\begin {ncsimplebnf }
3414
3414
postfix-expression \terminal {->} \terminal {\opt {template}} id-expression\\
3415
- postfix-expression \terminal {->} pseudo-destructor-name
3416
3415
\end {ncsimplebnf }
3417
3416
3418
3417
An expression
Original file line number Diff line number Diff line change 5213
5213
5214
5214
\begin {ncsimplebnf }
5215
5215
literal\br
5216
- postfix-expression \terminal {.} pseudo-destructor-name\br
5217
- postfix-expression \terminal {->} pseudo-destructor-name\br
5218
5216
\terminal {sizeof} unary-expression\br
5219
5217
\terminal {sizeof (} type-id \terminal {)}\br
5220
5218
\terminal {sizeof} \terminal {...} \terminal {(} identifier \terminal {)}\br
You can’t perform that action at this time.
0 commit comments