mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-08 23:24:20 +00:00
fix #397
This commit is contained in:
parent
3e5609848e
commit
a0db691691
2 changed files with 5 additions and 3 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue