Skip to content

Commit 6bd3dae

Browse files
committed
[class.ctor], [class.dtor] Introduce actual definitions for
"constructor" and "prospective destructor".
1 parent 94a72b5 commit 6bd3dae

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

source/classes.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,8 +1224,8 @@
12241224
\indextext{special member function|see{constructor}}%
12251225

12261226
\pnum
1227-
Constructors do not have names.
1228-
In a declaration of a constructor, the \grammarterm{declarator} is a
1227+
A \defn{constructor} is introduced by a declaration
1228+
whose \grammarterm{declarator} is a
12291229
function declarator\iref{dcl.fct} of the form
12301230

12311231
\begin{ncbnf}
@@ -1250,7 +1250,7 @@
12501250
\grammarterm{id-expression} is a \grammarterm{qualified-id} that names a
12511251
constructor\iref{class.qual}.
12521252
\end{itemize}
1253-
1253+
Constructors do not have names.
12541254
In a constructor declaration, each \grammarterm{decl-specifier} in the optional
12551255
\grammarterm{decl-specifier-seq} shall be \tcode{friend}, \tcode{inline},
12561256
\tcode{constexpr}, or an \grammarterm{explicit-specifier}.
@@ -2112,7 +2112,8 @@
21122112
\indextext{special member function|see{destructor}}%
21132113

21142114
\pnum
2115-
In a declaration of a prospective destructor, the \grammarterm{declarator} is a
2115+
A \defnadj{prospective}{destructor} is introduced by a declaration
2116+
whose \grammarterm{declarator} is a
21162117
function declarator\iref{dcl.fct} of the form
21172118

21182119
\begin{ncbnf}

source/templates.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6427,7 +6427,7 @@
64276427
members that have been defined at the point of instantiation.
64286428

64296429
\pnum
6430-
An explicit instantiation of a prospective destructor
6430+
An explicit instantiation of a prospective destructor\iref{class.dtor}
64316431
shall name the selected destructor of the class.
64326432

64336433
\pnum

0 commit comments

Comments
 (0)