mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
wip
This commit is contained in:
parent
bd2edb8368
commit
4e17faa86d
1 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ 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> {
|
struct std::formatter<E, std::enable_if_t<std::is_enum_v<std::decay_t<E>>, char>> : std::formatter<std::string_view, char> {
|
||||||
template <class FormatContext>
|
template <class FormatContext>
|
||||||
auto format(E e, FormatContext& ctx) const {
|
auto format(E e, FormatContext& ctx) const {
|
||||||
return formatter<std::string_view, char>::format(magic_enum::detail::format_as<E>(e), ctx);
|
return std::formatter<std::string_view, char>::format(magic_enum::detail::format_as<E>(e), ctx);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -75,7 +75,7 @@ template <typename E>
|
||||||
struct fmt::formatter<E, std::enable_if_t<std::is_enum_v<std::decay_t<E>>, char>> : fmt::formatter<std::string_view, char> {
|
struct fmt::formatter<E, std::enable_if_t<std::is_enum_v<std::decay_t<E>>, char>> : fmt::formatter<std::string_view, char> {
|
||||||
template <class FormatContext>
|
template <class FormatContext>
|
||||||
auto format(E e, FormatContext& ctx) const {
|
auto format(E e, FormatContext& ctx) const {
|
||||||
return formatter<std::string_view, char>::format(magic_enum::detail::format_as<E>(e), ctx);
|
return fmt::formatter<std::string_view, char>::format(magic_enum::detail::format_as<E>(e), ctx);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue