Make all fmt::formatter constructors constexpr

This commit is contained in:
Pokechu22 committed 2022-01-13 11:11:08 -08:00
1 parent 78e43a4404
commit ac46b91673
9 files changed
+66 -65

No files matched your search

+1 -1
View File
@@ -201,7 +201,7 @@ TEST(BitField, Alignment)
template <>
struct fmt::formatter<TestEnum> : EnumFormatter<TestEnum::D>
{
formatter() : EnumFormatter({"A", "B", "C", "D"}) {}
constexpr formatter() : EnumFormatter({"A", "B", "C", "D"}) {}
};
// Test behavior of using BitFields with fmt