From f4f6d8f16cfe5fd2edc25a641fc6cdd0da2f2030 Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Wed, 13 Aug 2025 10:47:37 -0700 Subject: [PATCH] P0811R3_midpoint_lerp: Suppress warning C4756 --- tests/std/tests/P0811R3_midpoint_lerp/test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/std/tests/P0811R3_midpoint_lerp/test.cpp b/tests/std/tests/P0811R3_midpoint_lerp/test.cpp index 130a41576fd..7534f719859 100644 --- a/tests/std/tests/P0811R3_midpoint_lerp/test.cpp +++ b/tests/std/tests/P0811R3_midpoint_lerp/test.cpp @@ -1031,6 +1031,8 @@ bool test_lerp() { return true; } +#pragma warning(push) +#pragma warning(disable : 4756) // ignore constant arithmetic overflow warning void test_gh_1917() { // GH-1917 : lerp(1e+308, 5e+307, 4.0) spuriously overflows using bit_type = unsigned long long; @@ -1110,6 +1112,7 @@ void test_gh_1917() { } #endif // _M_FP_STRICT } +#pragma warning(pop) constexpr bool test_gh_2112() { // GH-2112 : std::lerp is missing Arithmetic overloads