File tree Expand file tree Collapse file tree 7 files changed +14
-19
lines changed Expand file tree Collapse file tree 7 files changed +14
-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 6633
6633
a \tcode {reinterpret_cast}\iref {expr.reinterpret.cast };
6634
6634
6635
6635
\item
6636
- a pseudo-destructor call\iref {expr.pseudo };
6636
+ a pseudo-destructor call\iref {expr.prim.id.dtor };
6637
6637
6638
6638
\item
6639
6639
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 3410
3410
uses \tcode {->}.
3411
3411
3412
3412
\begin {ncsimplebnf }
3413
- postfix-expression \terminal {->} \terminal {\opt {template}} id-expression\\
3414
- postfix-expression \terminal {->} pseudo-destructor-name
3413
+ postfix-expression \terminal {->} \terminal {\opt {template}} id-expression
3415
3414
\end {ncsimplebnf }
3416
3415
3417
3416
An expression
Original file line number Diff line number Diff line change 5214
5214
5215
5215
\begin {ncsimplebnf }
5216
5216
literal\br
5217
- postfix-expression \terminal {.} pseudo-destructor-name\br
5218
- postfix-expression \terminal {->} pseudo-destructor-name\br
5219
5217
\terminal {sizeof} unary-expression\br
5220
5218
\terminal {sizeof (} type-id \terminal {)}\br
5221
5219
\terminal {sizeof} \terminal {...} \terminal {(} identifier \terminal {)}\br
Original file line number Diff line number Diff line change 30
30
% P0588 replaced function prototype scope with function parameter scope.
31
31
\movedxref {basic.scope.proto }{basic.scope.param}
32
32
33
+ \movedxref {expr.pseudo }{expr.prim.id.dtor}
34
+
33
35
\movedxref {utility.from.chars }{charconv.from.chars}
34
36
\movedxref {utility.to.chars }{charconv.to.chars}
35
37
You can’t perform that action at this time.
0 commit comments