Skip to content

Commit 8b0d857

Browse files
committed
Only do this for C++17
1 parent 5cfca8e commit 8b0d857

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/format-test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,6 +2564,7 @@ auto fmt::formatter<incomplete_type>::format(const incomplete_type&,
25642564
return formatter<int>::format(42, ctx);
25652565
}
25662566

2567+
#if FMT_CPLUSPLUS >= 201703L
25672568
namespace {
25682569

25692570
template <size_t N>
@@ -2583,3 +2584,4 @@ TEST(format_test, fixed_string_constant) {
25832584
static constexpr auto f = fixed_string<5>("x={}");
25842585
EXPECT_EQ(fmt::format(f.data, 42), "x=42");
25852586
}
2587+
#endif

0 commit comments

Comments
 (0)