1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-08 23:24:20 +00:00
This commit is contained in:
neargye 2025-11-21 18:34:51 +04:00
parent 3e5609848e
commit a0db691691
2 changed files with 5 additions and 3 deletions

View file

@ -329,11 +329,11 @@ class static_str {
template <>
class static_str<0> {
public:
constexpr explicit static_str() = default;
constexpr static_str() noexcept = default;
constexpr explicit static_str(str_view) noexcept {}
constexpr static_str(str_view) noexcept {}
constexpr explicit static_str(string_view) noexcept {}
constexpr static_str(string_view) noexcept {}
constexpr const char_type* data() const noexcept { return nullptr; }

View file

@ -59,6 +59,8 @@ std::string format_as(E e) {
#if defined(__cpp_lib_format)
#include <format>
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> {
template <class FormatContext>