mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 16:56:42 +08:00
Recommend magic_enum
[skip ci]
This commit is contained in:
parent
1ea7f04bb9
commit
4b76e7783b
@ -17,6 +17,8 @@ file, and without dependencies.
|
|||||||
|
|
||||||
[sample]: https://raw.githubusercontent.com/aantron/better-enums/master/doc/image/sample.gif
|
[sample]: https://raw.githubusercontent.com/aantron/better-enums/master/doc/image/sample.gif
|
||||||
|
|
||||||
|
**Note**: consider [**magic_enum**](https://github.com/Neargye/magic_enum) (if using GCC, requires at least GCC 9.0).
|
||||||
|
|
||||||
In C++11, *everything* can be used at compile time. You can convert your enums,
|
In C++11, *everything* can be used at compile time. You can convert your enums,
|
||||||
loop over them, [find their max][max],
|
loop over them, [find their max][max],
|
||||||
[statically enforce conventions][enforce], and pass along the results as
|
[statically enforce conventions][enforce], and pass along the results as
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user