Skip to content

[2025-02 CWG Motion 2] P3542R0 Abolish the term "converting constructor" #7679

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 24, 2025
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
9 changes: 0 additions & 9 deletions source/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2315,8 +2315,6 @@
specifies a conversion from
the types of its parameters (if any)
to the type of its class.
Such a constructor is called a
\defnadj{converting}{constructor}.
\begin{example}
\indextext{Jessie}%
\begin{codeblock}
Expand Down Expand Up @@ -2367,13 +2365,6 @@
\end{example}
\end{note}

\pnum
\begin{note}
A non-explicit copy/move constructor\iref{class.copy.ctor},
including one implicitly declared,
is a converting constructor.
\end{note}

\rSec3[class.conv.fct]{Conversion functions}%
\indextext{function!conversion}%
\indextext{fundamental type conversion|see{conversion, user-defined}}%
Expand Down
6 changes: 3 additions & 3 deletions source/overloading.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@
all the constructors of the class of the object being
initialized.
Otherwise, the candidate functions are all
the converting constructors\iref{class.conv.ctor} of that
the non-explicit constructors\iref{class.conv.ctor} of that
class.
The argument list is the
\grammarterm{expression-list} or \grammarterm{assignment-expression}
Expand Down Expand Up @@ -1037,7 +1037,7 @@

\begin{itemize}
\item
The converting constructors\iref{class.conv.ctor} of
The non-explicit constructors\iref{class.conv.ctor} of
\tcode{T}
are candidate functions.
\item
Expand Down Expand Up @@ -1173,7 +1173,7 @@
chosen, the initialization is ill-formed.
\begin{note}
This differs from other situations\iref{over.match.ctor,over.match.copy},
where only converting constructors are considered for copy-initialization.
where only non-explicit constructors are considered for copy-initialization.
This restriction only
applies if this initialization is part of the final result of overload
resolution.
Expand Down