File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 23152315specifies a conversion from
23162316the types of its parameters (if any)
23172317to the type of its class.
2318- Such a constructor is called a
2319- \defnadj {converting}{constructor}.
23202318\begin {example }
23212319\indextext {Jessie}%
23222320\begin {codeblock }
23672365\end {example }
23682366\end {note }
23692367
2370- \pnum
2371- \begin {note }
2372- A non-explicit copy/move constructor\iref {class.copy.ctor },
2373- including one implicitly declared,
2374- is a converting constructor.
2375- \end {note }
2376-
23772368\rSec 3[class.conv.fct]{Conversion functions}%
23782369\indextext {function!conversion}%
23792370\indextext {fundamental type conversion|see{conversion, user-defined}}%
Original file line number Diff line number Diff line change 10061006all the constructors of the class of the object being
10071007initialized.
10081008Otherwise, the candidate functions are all
1009- the converting constructors\iref {class.conv.ctor } of that
1009+ the non-explicit constructors\iref {class.conv.ctor } of that
10101010class.
10111011The argument list is the
10121012\grammarterm {expression-list} or \grammarterm {assignment-expression}
10371037
10381038\begin {itemize }
10391039\item
1040- The converting constructors\iref {class.conv.ctor } of
1040+ The non-explicit constructors\iref {class.conv.ctor } of
10411041\tcode {T}
10421042are candidate functions.
10431043\item
11731173chosen, the initialization is ill-formed.
11741174\begin {note }
11751175This differs from other situations\iref {over.match.ctor,over.match.copy },
1176- where only converting constructors are considered for copy-initialization.
1176+ where only non-explicit constructors are considered for copy-initialization.
11771177This restriction only
11781178applies if this initialization is part of the final result of overload
11791179resolution.
You can’t perform that action at this time.
0 commit comments