7#if USING(REPR_USE_MAGIC_ENUM)
8 #if __has_include(<magic_enum.hpp>)
10 #include <magic_enum.hpp>
11 #elif __has_include(<magic_enum/magic_enum.hpp>)
13 #include <magic_enum/magic_enum.hpp>
15 #error "Configured to use magic_enum but could not find magic_enum"
24 requires std::is_enum_v<T>
26#if USING(REPR_USE_MAGIC_ENUM)
27 return magic_enum::enum_names<T>();
34 requires std::is_enum_v<T>
36#if USING(REPR_USE_MAGIC_ENUM)
37 return magic_enum::enum_name(value);
46#if USING(REPR_USE_MAGIC_ENUM)
47 return magic_enum::enum_name<V>();
decltype(Search< T >::search()) dump_enum
Definition search.h:266
constexpr auto enum_name
Definition enum/util.h:65
std::string code_for()
Definition repr:39
constexpr std::string_view enum_name() noexcept
Definition enum/reflect.h:45
constexpr auto enum_names() noexcept
Definition enum/reflect.h:25