From 565461a0d3a8fba5f41590679e6f460ef06adb5d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 4 Sep 2024 06:43:05 -0700 Subject: [PATCH] Update MSVC workaround in compile-test --- test/compile-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/compile-test.cc b/test/compile-test.cc index 99006910..9e7d3c6d 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -198,7 +198,7 @@ TEST(compile_test, format_to_n) { EXPECT_STREQ("2a", buffer); } -# if FMT_USE_CONSTEVAL && (!FMT_MSC_VERSION || FMT_MSC_VERSION >= 1930) +# if FMT_USE_CONSTEVAL && (!FMT_MSC_VERSION || FMT_MSC_VERSION >= 1940) TEST(compile_test, constexpr_formatted_size) { FMT_CONSTEXPR20 size_t size = fmt::formatted_size(FMT_COMPILE("{}"), 42); EXPECT_EQ(size, 2);