mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
update doc and example
This commit is contained in:
parent
6992f41db7
commit
aa465f7f37
5 changed files with 27 additions and 7 deletions
|
|
@ -16,6 +16,10 @@
|
|||
};
|
||||
```
|
||||
|
||||
* `MAGIC_ENUM_RANGE_MAX/MAGIC_ENUM_RANGE_MIN` does not affect the maximum amount of flags.
|
||||
|
||||
* If enum is declared as flags, then it will not reflect the value of zero and is logically AND.
|
||||
|
||||
* Enum value must be in range `[MAGIC_ENUM_RANGE_MIN, MAGIC_ENUM_RANGE_MAX]`.
|
||||
|
||||
* By default `MAGIC_ENUM_RANGE_MIN = -128`, `MAGIC_ENUM_RANGE_MAX = 128`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue