mirror of git://gcc.gnu.org/git/gcc.git
![]() The __promoted_t alias is only defined when __cpp_fold_expressions is
defined, which might not be the case for some hypothetical C++17
compilers.
Change the 3-arg std::hypot to just use __gnu_cxx::__promote_3 which is
always available.
libstdc++-v3/ChangeLog:
PR libstdc++/121097
* include/c_global/cmath (hypot): Use __promote_3 instead of
__promoted.
Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
cassert | ||
ccomplex | ||
cctype | ||
cerrno | ||
cfenv | ||
cfloat | ||
cinttypes | ||
ciso646 | ||
climits | ||
clocale | ||
cmath | ||
csetjmp | ||
csignal | ||
cstdalign | ||
cstdarg | ||
cstdbool | ||
cstddef | ||
cstdint | ||
cstdio | ||
cstdlib | ||
cstring | ||
ctgmath | ||
ctime | ||
cuchar | ||
cwchar | ||
cwctype |