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 2315
2315
specifies a conversion from
2316
2316
the types of its parameters (if any)
2317
2317
to the type of its class.
2318
- Such a constructor is called a
2319
- \defnadj {converting}{constructor}.
2320
2318
\begin {example }
2321
2319
\indextext {Jessie}%
2322
2320
\begin {codeblock }
2367
2365
\end {example }
2368
2366
\end {note }
2369
2367
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
-
2377
2368
\rSec 3[class.conv.fct]{Conversion functions}%
2378
2369
\indextext {function!conversion}%
2379
2370
\indextext {fundamental type conversion|see{conversion, user-defined}}%
Original file line number Diff line number Diff line change 1006
1006
all the constructors of the class of the object being
1007
1007
initialized.
1008
1008
Otherwise, 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
1010
1010
class.
1011
1011
The argument list is the
1012
1012
\grammarterm {expression-list} or \grammarterm {assignment-expression}
1037
1037
1038
1038
\begin {itemize }
1039
1039
\item
1040
- The converting constructors\iref {class.conv.ctor } of
1040
+ The non-explicit constructors\iref {class.conv.ctor } of
1041
1041
\tcode {T}
1042
1042
are candidate functions.
1043
1043
\item
1173
1173
chosen, the initialization is ill-formed.
1174
1174
\begin {note }
1175
1175
This 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.
1177
1177
This restriction only
1178
1178
applies if this initialization is part of the final result of overload
1179
1179
resolution.
You can’t perform that action at this time.
0 commit comments