mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
Merge ffb57fe2ca into 2e6e8bfff3
This commit is contained in:
commit
3273f903d4
1 changed files with 2 additions and 0 deletions
|
|
@ -59,7 +59,9 @@ std::string format_as(E e) {
|
|||
|
||||
#if defined(__cpp_lib_format)
|
||||
|
||||
#ifndef MAGIC_ENUM_USE_STD_MODULE
|
||||
#include <format>
|
||||
#endif
|
||||
|
||||
template <typename E>
|
||||
struct std::formatter<E, std::enable_if_t<std::is_enum_v<std::decay_t<E>>, char>> : std::formatter<std::string_view, char> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue