From 6b60df69f6c7bca202e5fa22ac9fc243bb861992 Mon Sep 17 00:00:00 2001 From: Krylov Yaroslav Date: Sat, 12 Dec 2020 02:13:04 +0300 Subject: [PATCH] FMT_COMPILE tests are temporary switched on even if constexpr_if is not available. Let's on error output --- test/compile-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/compile-test.cc b/test/compile-test.cc index 4038ac58..a171979c 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -121,7 +121,7 @@ TEST(CompileTest, EmptyFormatString) { EXPECT_EQ(fmt::format(f), ""); } -#ifdef __cpp_if_constexpr +//#ifdef __cpp_if_constexpr TEST(CompileTest, FormatDefault) { EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), 42)); EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), 42u)); @@ -177,7 +177,7 @@ TEST(CompileTest, TextAndArg) { TEST(CompileTest, Empty) { EXPECT_EQ("", fmt::format(FMT_COMPILE(""))); } -#endif +//#endif #if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS TEST(CompileTest, CompileFormatStringLiteral) {