Skip to content

Commit 9f7a711

Browse files
authored
[class] removing redundant "constexpr-suitable" wording (#8108)
Constructors and destructors can't be coroutines (since P3533R2), therefore they are always constexpr-suitable, and any wording that states this explicitly is not needed and is removed in this change.
1 parent c84e2cb commit 9f7a711

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
@@ -1437,8 +1437,7 @@
14371437
\grammarterm{compound-statement}.
14381438
If that user-written default constructor would be ill-formed,
14391439
the program is ill-formed.
1440-
If that user-written default constructor would be constexpr-suitable\iref{dcl.constexpr},
1441-
the implicitly-defined
1440+
The implicitly-defined
14421441
default constructor is \keyword{constexpr}.
14431442
Before the defaulted default constructor for a class is
14441443
implicitly defined,
@@ -1723,8 +1722,7 @@
17231722
The copy/move constructor is implicitly defined even if the implementation elided
17241723
its odr-use\iref{term.odr.use,class.temporary}.
17251724
\end{note}
1726-
If an implicitly-defined\iref{dcl.fct.def.default} constructor would be constexpr-suitable\iref{dcl.constexpr},
1727-
the implicitly-defined
1725+
The implicitly-defined\iref{dcl.fct.def.default}
17281726
constructor is \keyword{constexpr}.
17291727

17301728
\pnum
@@ -2220,8 +2218,7 @@
22202218
\defnx{non-trivial}{destructor!non-trivial}.
22212219

22222220
\pnum
2223-
A defaulted destructor is a constexpr destructor
2224-
if it is constexpr-suitable\iref{dcl.constexpr}.
2221+
A defaulted destructor is a constexpr destructor.
22252222

22262223
\pnum
22272224
Before a

0 commit comments

Comments
 (0)