Skip to content

Commit 781688e

Browse files
committed
[class] removing redundant wording, constructors and destructors can't be coroutines (since P3533R2), therefore they are always constexpr-suitable and removed wording is not needed.
1 parent c07c130 commit 781688e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

source/classes.tex

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,8 +1440,7 @@
14401440
\grammarterm{compound-statement}.
14411441
If that user-written default constructor would be ill-formed,
14421442
the program is ill-formed.
1443-
If that user-written default constructor would be constexpr-suitable\iref{dcl.constexpr},
1444-
the implicitly-defined
1443+
The implicitly-defined
14451444
default constructor is \keyword{constexpr}.
14461445
Before the defaulted default constructor for a class is
14471446
implicitly defined,
@@ -1726,8 +1725,7 @@
17261725
The copy/move constructor is implicitly defined even if the implementation elided
17271726
its odr-use\iref{term.odr.use,class.temporary}.
17281727
\end{note}
1729-
If an implicitly-defined\iref{dcl.fct.def.default} constructor would be constexpr-suitable\iref{dcl.constexpr},
1730-
the implicitly-defined
1728+
The implicitly-defined\iref{dcl.fct.def.default}
17311729
constructor is \keyword{constexpr}.
17321730

17331731
\pnum
@@ -2223,8 +2221,7 @@
22232221
\defnx{non-trivial}{destructor!non-trivial}.
22242222

22252223
\pnum
2226-
A defaulted destructor is a constexpr destructor
2227-
if it is constexpr-suitable\iref{dcl.constexpr}.
2224+
A defaulted destructor is a constexpr destructor.
22282225

22292226
\pnum
22302227
Before a

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy