From 4036f1e86bd5e46a4d216069f3aa1bff0f1ae9f5 Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Mon, 23 Mar 2026 10:09:41 -0400 Subject: [PATCH] [class.default.ctor, class.copy.ctor, class.copy.assign] No code font for "constexpr" ...in "is constexpr" or "is a constexpr function," since a function can be "a constexpr function" ([dcl.constexpr]/2) without using the `constexpr` keyword in the source code. --- source/classes.tex | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/classes.tex b/source/classes.tex index bbad2eca06..fdc9dd2518 100644 --- a/source/classes.tex +++ b/source/classes.tex @@ -1350,8 +1350,7 @@ \grammarterm{compound-statement}. If that user-written default constructor would be ill-formed, the program is ill-formed. -The implicitly-defined -default constructor is \keyword{constexpr}. +The implicitly-defined default constructor is constexpr. Before the defaulted default constructor for a class is implicitly defined, all the non-user-provided default constructors for its base classes and @@ -1636,8 +1635,7 @@ The copy/move constructor is implicitly defined even if the implementation elided its odr-use\iref{term.odr.use,class.temporary}. \end{note} -The implicitly-defined\iref{dcl.fct.def.default} -constructor is \keyword{constexpr}. +The implicitly-defined\iref{dcl.fct.def.default} constructor is constexpr. \pnum Before the defaulted copy/move constructor for a class is @@ -1913,7 +1911,7 @@ \defnx{non-trivial}{assignment operator!copy!non-trivial}. \pnum -An implicitly-defined\iref{dcl.fct.def.default} copy/move assignment operator is \keyword{constexpr}. +An implicitly-defined\iref{dcl.fct.def.default} copy/move assignment operator is constexpr. \pnum Before the defaulted copy/move assignment operator for a class is