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-13 11:18:34 +05:00
parent 3393b85145
commit 5bea6283aa

View file

@ -60,7 +60,7 @@ int main() {
}
// Enum value to integer value.
auto color_integer = magic_enum::enum_integer(Color::RED);
auto color_integer = magic_enum::enum_integer(c1);
if (color_integer == to_integer(Color::RED)) {
std::cout << "RED = " << color_integer << std::endl; // RED = -10
}