diff --git a/test/format-test.cc b/test/format-test.cc index fe149c53..1b5a2f71 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -2475,8 +2475,6 @@ TEST(FormatTest, VFormatTo) { EXPECT_EQ(L"42", w); } -#endif // FMT_USE_CONSTEXPR - template static std::string FmtToString(const T& t) { return fmt::format(FMT_STRING("{}"), t); } @@ -2486,6 +2484,8 @@ TEST(FormatTest, FmtStringInTemplate) { EXPECT_EQ(FmtToString(0), "0"); } +#endif // FMT_USE_CONSTEXPR + TEST(FormatTest, ConstructU8StringViewFromCString) { fmt::u8string_view s("ab"); EXPECT_EQ(s.size(), 2u);