mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
update example
This commit is contained in:
parent
1b9dea0892
commit
5aa0f247a3
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ enum class Color : int { RED = -10, BLUE = 0, GREEN = 10 };
|
|||
template <typename E>
|
||||
auto to_integer(magic_enum::Enum<E> value) {
|
||||
// magic_enum::Enum<E> - C++17 Concept for enum type.
|
||||
return static_cast<std::underlying_type_t<E>>(value);
|
||||
return static_cast<magic_enum::underlying_type_t<E>>(value);
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue