mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
clen-up & improve (#173)
This commit is contained in:
parent
2e7313d3f7
commit
2615fa5e7b
2 changed files with 24 additions and 3 deletions
|
|
@ -990,7 +990,7 @@ template <typename E>
|
|||
|
||||
// Returns underlying value from enum value.
|
||||
template <typename E>
|
||||
[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> detail::enable_if_enum_t<E, underlying_type_t<E>> {
|
||||
[[nodiscard]] constexpr auto enum_underlying(E value) noexcept -> detail::enable_if_t<E, underlying_type_t<E>> {
|
||||
return static_cast<underlying_type_t<E>>(value);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue