1
0
Fork 0
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:
neargye 2019-08-27 18:14:02 +05:00
parent 669b7ac9bc
commit a9a8892026

View file

@ -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)