Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions module/magic_enum.cppm
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
module;

#include <version>
#if __has_include(<fmt/format.h>)
#include <fmt/format.h>
#endif
#ifndef MAGIC_ENUM_USE_STD_MODULE
#if defined(__cpp_lib_format)
#include <format>
#endif
#include <magic_enum/magic_enum_all.hpp>
#endif

Expand Down Expand Up @@ -74,3 +80,9 @@ export namespace std {
using std::formatter;
}
#endif

#if defined(FMT_VERSION)
export namespace fmt {
using fmt::formatter;
}
#endif