summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-01-12 17:28:17 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-13 11:11:08 -0800
commitac46b91673adae121e48bb6beedfb5b61339c39b (patch)
treeefee3e23f3f347f7d6d116be15ed9e2d191599c3 /Source/Core/Common
parent78e43a44042e6407318970753df4d3b5b230e80c (diff)
Make all fmt::formatter constructors constexpr
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/EnumFormatter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/EnumFormatter.h b/Source/Core/Common/EnumFormatter.h
index 2b8e7d36f5..723eb5a4a2 100644
--- a/Source/Core/Common/EnumFormatter.h
+++ b/Source/Core/Common/EnumFormatter.h
@@ -23,7 +23,7 @@
* template <>
* struct fmt::formatter<Foo> : EnumFormatter<Foo::C>
* {
- * formatter() : EnumFormatter({"A", "B", "C"}) {}
+ * constexpr formatter() : EnumFormatter({"A", "B", "C"}) {}
* };
*
* enum class Bar
@@ -39,7 +39,7 @@
* // using std::array here fails due to nullptr not being const char*, at least in MSVC
* // (but only when a field is used; directly in the constructor is OK)
* static constexpr array_type names = {"D", "E", nullptr, "F"};
- * formatter() : EnumFormatter(names) {}
+ * constexpr formatter() : EnumFormatter(names) {}
* };
*/
template <auto last_member, typename = decltype(last_member)>