Make all fmt::formatter constructors constexpr

This commit is contained in:
Pokechu22
2022-01-13 11:11:08 -08:00
parent 78e43a4404
commit ac46b91673
9 changed files with 66 additions and 65 deletions
+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