1
0
Fork 0
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:
neargye 2019-12-30 17:00:31 +05:00
parent 1b9dea0892
commit 5aa0f247a3

View file

@ -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() {