From 4d254201bdb5bf5c49cd6ff090dd9bc1f348ffde Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Fri, 14 Aug 2020 15:49:39 -0500 Subject: [PATCH] This test requires C++14. --- test/format-test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/format-test.cc b/test/format-test.cc index dcd1e486..7144064a 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -2474,6 +2474,7 @@ TEST(FormatTest, FormatUTF8Precision) { EXPECT_EQ(from_u8str(result), from_u8str(str.substr(0, 5))); } +#ifdef __cpp_decltype_auto struct lazy_optional { bool engaged; std::string value; @@ -2499,3 +2500,5 @@ TEST(FormatTest, BackInsertSlicing) { EXPECT_EQ(fmt::format("{}", lazy_optional{false, ""}), "None()"); EXPECT_EQ(fmt::format("{}", lazy_optional{true, "X"}), "Some(X)"); } +#endif +