File tree 2 files changed +3
-7
lines changed
Filter options
2 files changed +3
-7
lines changed
Original file line number Diff line number Diff line change 2347
2347
specifies a conversion from
2348
2348
the types of its parameters (if any)
2349
2349
to the type of its class.
2350
- Such a constructor is called a
2351
- \defnadj {converting}{constructor}.
2352
2350
\begin {example }
2353
2351
\indextext {Jessie}%
2354
2352
\begin {codeblock }
2400
2398
\end {note }
2401
2399
2402
2400
\pnum
2403
- A non-explicit copy/move constructor\iref {class.copy.ctor } is
2404
- a converting constructor.
2405
2401
\begin {note }
2406
2402
An implicitly-declared copy/move constructor is not an explicit constructor;
2407
2403
it can be called for implicit type conversions.
Original file line number Diff line number Diff line change 1007
1007
initialized.
1008
1008
For copy-initialization (including default initialization
1009
1009
in the context of copy-initialization), the candidate functions are all
1010
- the converting constructors\iref {class.conv.ctor } of that
1010
+ the non-explicit constructors\iref {class.conv.ctor } of that
1011
1011
class.
1012
1012
The argument list is the
1013
1013
\grammarterm {expression-list} or \grammarterm {assignment-expression}
1036
1036
1037
1037
\begin {itemize }
1038
1038
\item
1039
- The converting constructors\iref {class.conv.ctor } of
1039
+ The non-explicit constructors\iref {class.conv.ctor } of
1040
1040
\tcode {T}
1041
1041
are candidate functions.
1042
1042
\item
1172
1172
chosen, the initialization is ill-formed.
1173
1173
\begin {note }
1174
1174
This differs from other situations\iref {over.match.ctor,over.match.copy },
1175
- where only converting constructors are considered for copy-initialization.
1175
+ where only non-explicit constructors are considered for copy-initialization.
1176
1176
This restriction only
1177
1177
applies if this initialization is part of the final result of overload
1178
1178
resolution.
You can’t perform that action at this time.
0 commit comments