Skip to content

Commit

Permalink
Update enum_name.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mguludag authored Mar 29, 2024
1 parent 8f56d04 commit 0e5b19f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/enum_name.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,9 @@ template <typename Enum>
using enum_pair = std::pair<Enum, detail::string_view>;

template <typename Enum, Enum... Is>
MG_ENUM_NAME_CNSTXPR inline auto get_enum_array(
detail::enum_sequence<Enum, Is...>) noexcept
inline auto get_enum_array(detail::enum_sequence<Enum, Is...>) noexcept
-> std::array<detail::string_view, sizeof...(Is) + 1> {
static std::array<detail::string_view,
sizeof...(Is) + 1>
static std::array<detail::string_view, sizeof...(Is) + 1>
arr{"", enum_type::template name<Enum, Is>()...};
return arr;
}
Expand Down

0 comments on commit 0e5b19f

Please sign in to comment.