1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

add flags (#43)

This commit is contained in:
Daniil Goncharov 2020-08-15 22:52:22 +05:00 committed by GitHub
commit 32e2e6318d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 790 additions and 266 deletions

View file

@ -199,6 +199,8 @@ enum class Color { RED = 2, BLUE = 4, GREEN = 8 };
* Before use, read the [limitations](doc/limitations.md) of functionality.
* For the small enum use the API from the namespace `magic_enum`, and for enum-flags use the API from the namespace `magic_enum::flags`.
## Integration
You should add the required file [magic_enum.hpp](include/magic_enum.hpp).