Skip to content

Commit da73757

Browse files
committed
1 parent 905ba74 commit da73757

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/magic_enum/magic_enum.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ template <typename E>
12581258

12591259
// Returns underlying value from enum value.
12601260
template <typename E>
1261-
[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> detail::enable_if_t<E, underlying_type_t<E>> {
1261+
[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> -> underlying_type_t<E> {
12621262
return static_cast<underlying_type_t<E>>(value);
12631263
}
12641264

0 commit comments

Comments
 (0)