We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 905ba74 commit da73757Copy full SHA for da73757
1 file changed
include/magic_enum/magic_enum.hpp
@@ -1258,7 +1258,7 @@ template <typename E>
1258
1259
// Returns underlying value from enum value.
1260
template <typename E>
1261
-[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> detail::enable_if_t<E, underlying_type_t<E>> {
+[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> -> underlying_type_t<E> {
1262
return static_cast<underlying_type_t<E>>(value);
1263
}
1264
0 commit comments