We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35afb0e commit c6fe6a8Copy full SHA for c6fe6a8
source/numerics.tex
@@ -1201,8 +1201,10 @@
1201
Function template \tcode{pow} has additional constexpr overloads sufficient to ensure,
1202
for a call with one argument of type \tcode{complex<T1>} and
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,
+both arguments are effectively cast to \tcode{complex<common_type_t<T1, T3>>},
+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,
1208
then the program is ill-formed.
1209
1210
\rSec2[complex.literals]{Suffixes for complex number literals}
0 commit comments