mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
Support fmt in C++20 module
This commit is contained in:
parent
1a1824df7a
commit
177ef077d3
1 changed files with 9 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
module;
|
module;
|
||||||
|
|
||||||
#include <version>
|
#include <version>
|
||||||
|
#if __has_include(<fmt/base.h>)
|
||||||
|
#include <fmt/base.h>
|
||||||
|
#endif
|
||||||
#ifndef MAGIC_ENUM_USE_STD_MODULE
|
#ifndef MAGIC_ENUM_USE_STD_MODULE
|
||||||
#include <magic_enum/magic_enum_all.hpp>
|
#include <magic_enum/magic_enum_all.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -74,3 +77,9 @@ export namespace std {
|
||||||
using std::formatter;
|
using std::formatter;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(FMT_VERSION)
|
||||||
|
export namespace fmt {
|
||||||
|
using fmt::formatter;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue