[libcxx-commits] [libcxx] [libc++][math] Fix undue overflowing of `std::hypot(x, y, z)` (PR #93350)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 4 08:53:43 PDT 2024
================
@@ -1113,6 +1116,44 @@ void test_fmin()
assert(std::fmin(1,0) == 0);
}
+struct TestHypot3 {
+ template <class Real>
+ static void operator()() {
----------------
ldionne wrote:
```suggestion
void operator()() const {
```
More friendly to older Standards!
https://github.com/llvm/llvm-project/pull/93350
More information about the libcxx-commits
mailing list