1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00
This commit is contained in:
Christopher D. Canfield 2025-12-10 15:31:44 -05:00 committed by GitHub
commit 3273f903d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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> {