Remove FMT_CONSTEXPR_DECL

This commit is contained in:
Victor Zverovich
2022-05-29 16:42:58 -07:00
parent d6b568a6cc
commit 1761e2666a
5 changed files with 15 additions and 19 deletions
+2 -2
View File
@@ -1829,8 +1829,8 @@ fmt::string_view to_string_view(string_like) { return "foo"; }
constexpr char with_null[3] = {'{', '}', '\0'};
constexpr char no_null[2] = {'{', '}'};
static FMT_CONSTEXPR_DECL const char static_with_null[3] = {'{', '}', '\0'};
static FMT_CONSTEXPR_DECL const char static_no_null[2] = {'{', '}'};
static constexpr const char static_with_null[3] = {'{', '}', '\0'};
static constexpr const char static_no_null[2] = {'{', '}'};
TEST(format_test, compile_time_string) {
EXPECT_EQ("foo", fmt::format(FMT_STRING("foo")));