You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,8 +362,8 @@ Header-only C++17 library provides static reflection for enums, work with any en
362
362
Do not use `#include <magic_enum/...>` and `import magic_enum;` in the same program. Use the same compiler, standard library, and C++ standard when building and consuming an installed module. The pkg-config package supports only the header-only target.
363
363
364
364
Optional settings:
365
-
- `{fmt}` support is enabled automatically when `fmt::fmt-module` or `fmt::fmt` already exists. The module target is preferred when it uses the same C++ standard. Set `MAGIC_ENUM_MODULE_WITH_FMT=ON` to require `{fmt}`, or `OFF` to disable it.
366
-
- Set `MAGIC_ENUM_MODULE_IMPORT_STD=ON` to enable experimental `import std` support. This requires a compatible CMake toolchain.
365
+
- `{fmt}` support is enabled automatically when `fmt::fmt-module` or `fmt::fmt` already exists and `import std` is disabled. The module target is preferred when it uses the same C++ standard. Set `MAGIC_ENUM_MODULE_WITH_FMT=ON` to require `{fmt}`, or `OFF` to disable it.
366
+
- Set `MAGIC_ENUM_MODULE_IMPORT_STD=ON` to enable experimental `import std` support. Use `std::format` in this mode. `{fmt}` integration cannot be enabled. This requires a compatible CMake toolchain.
0 commit comments