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 12011201Function template \tcode{pow} has additional constexpr overloads sufficient to ensure,
12021202for a call with one argument of type \tcode{complex<T1>} and
12031203the 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,
12061208then the program is ill-formed.
12071209
12081210\rSec2[complex.literals]{Suffixes for complex number literals}
You can’t perform that action at this time.
0 commit comments