File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1201
1201
Function template \tcode{pow} has additional constexpr overloads sufficient to ensure,
1202
1202
for a call with one argument of type \tcode{complex<T1>} and
1203
1203
the other argument of type \tcode{T2} or \tcode{complex<T2>},
1204
- both arguments are effectively cast to \tcode{complex<common_type_t<T1, T2>>}.
1205
- If \tcode{common_type_t<T1, T2>} is not well-formed,
1204
+ both arguments are effectively cast to \tcode{complex<common_type_t<T1, T3>>},
1205
+ where \tcode{T3} is
1206
+ \tcode{double} if \tcode{T2} is an integer type and \tcode{T2} otherwise.
1207
+ If \tcode{common_type_t<T1, T3>} is not well-formed,
1206
1208
then the program is ill-formed.
1207
1209
1208
1210
\rSec2[complex.literals]{Suffixes for complex number literals}
You can’t perform that action at this time.
0 commit comments