Skip to content

Do not use code font for constexpr constructor and constexpr function #1484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@
data members and base class subobjects shall be a constexpr constructor;

\item
for a delegating constructor, the target constructor shall be a \tcode{constexpr}
for a delegating constructor, the target constructor shall be a constexpr
constructor.
\end{itemize}

Expand Down Expand Up @@ -916,9 +916,9 @@
If the instantiated template specialization of a constexpr function
template
or member function of a class template
would fail to satisfy the requirements for a \tcode{constexpr}
would fail to satisfy the requirements for a constexpr
function or constexpr constructor,
that specialization is still a constexpr function or \tcode{constexpr}
that specialization is still a constexpr function or constexpr
constructor, even though a call to such a function cannot appear in a constant
expression. If no specialization of the template would satisfy the
requirements for a constexpr function or constexpr constructor
Expand All @@ -931,7 +931,7 @@
non-constexpr function in all respects except that
\begin{itemize}
\item
a call to a \tcode{constexpr}
a call to a constexpr
function can appear in a constant expression~(\ref{expr.const}) and
\item
copy elision is mandatory in a constant expression~(\ref{class.copy}).
Expand Down
2 changes: 1 addition & 1 deletion source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4878,7 +4878,7 @@

\begin{itemize}
\item
\tcode{this}~(\ref{expr.prim.this}), except in a \tcode{constexpr}
\tcode{this}~(\ref{expr.prim.this}), except in a constexpr
function or a constexpr constructor that is being evaluated as part
of \tcode{e};

Expand Down
2 changes: 1 addition & 1 deletion source/lib-intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2746,7 +2746,7 @@
\tcode{constexpr}~(\ref{dcl.constexpr}). An implementation shall not declare
any standard library function signature as \tcode{constexpr} except for those where
it is explicitly required.
Within any header that provides any non-defining declarations of \tcode{constexpr}
Within any header that provides any non-defining declarations of constexpr
functions or constructors an implementation shall provide corresponding definitions.

\rSec3[algorithm.stable]{Requirements for stable algorithms}
Expand Down
4 changes: 2 additions & 2 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2743,7 +2743,7 @@

\pnum
\remarks
If \tcode{T}'s constructor selected for the initialization is a constexpr constructor, this constructor shall be a \tcode{constexpr} constructor.
If \tcode{T}'s constructor selected for the initialization is a constexpr constructor, this constructor shall be a constexpr constructor.
This constructor shall not participate in overload resolution
unless \tcode{is_constructible_v<T, Args...>} is \tcode{true}.
\end{itemdescr}
Expand All @@ -2770,7 +2770,7 @@
\pnum
\remarks
This constructor shall not participate in overload resolution unless \tcode{is_constructible_v<T, initializer_list<U>\&, Args\&\&...>} is \tcode{true}.
If \tcode{T}'s constructor selected for the initialization is a constexpr constructor, this constructor shall be a \tcode{constexpr} constructor.
If \tcode{T}'s constructor selected for the initialization is a constexpr constructor, this constructor shall be a constexpr constructor.
\end{itemdescr}

\pnum
Expand Down