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
3393b85145
commit
5bea6283aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue