We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 341521b commit 2e6e8bfCopy full SHA for 2e6e8bf
1 file changed
module/magic_enum.cppm
@@ -1,7 +1,13 @@
1
module;
2
3
#include <version>
4
+#if __has_include(<fmt/format.h>)
5
+#include <fmt/format.h>
6
+#endif
7
#ifndef MAGIC_ENUM_USE_STD_MODULE
8
+#if defined(__cpp_lib_format)
9
+#include <format>
10
11
#include <magic_enum/magic_enum_all.hpp>
12
#endif
13
@@ -85,3 +91,9 @@ export namespace std {
85
91
using std::formatter;
86
92
}
87
93
94
+
95
+#if defined(FMT_VERSION)
96
+export namespace fmt {
97
+ using fmt::formatter;
98
+}
99
0 commit comments