mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
fix static_assert msg
This commit is contained in:
parent
669b7ac9bc
commit
a9a8892026
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ inline constexpr auto range_v = range<E>();
|
|||
|
||||
template <typename E, E V>
|
||||
[[nodiscard]] constexpr auto n() noexcept {
|
||||
static_assert(std::is_enum_v<E>, "magic_enum::detail::name requires enum type.");
|
||||
static_assert(std::is_enum_v<E>, "magic_enum::detail::n requires enum type.");
|
||||
#if defined(__clang__) || defined(__GNUC__) && __GNUC__ >= 9
|
||||
constexpr auto name = pretty_name({__PRETTY_FUNCTION__, sizeof(__PRETTY_FUNCTION__) - 2});
|
||||
#elif defined(_MSC_VER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue