[libcxx-commits] [libcxx] [libc++][math] Fix undue overflowing of `std::hypot(x, y, z)` (PR #100820)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 27 00:45:06 PDT 2024
================
@@ -15,10 +15,22 @@
#include <__type_traits/is_same.h>
#include <__type_traits/promote.h>
+#if _LIBCPP_STD_VER >= 17
+# include <__algorithm/max.h>
+# include <__math/abs.h>
+# include <__math/exponential_functions.h>
+# include <__math/roots.h>
+# include <__utility/pair.h>
+# include <limits>
+#endif
----------------
philnik777 wrote:
These shouldn't be conditionally included. We don't do that anywhere else.
https://github.com/llvm/llvm-project/pull/100820
More information about the libcxx-commits
mailing list