mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 16:56:42 +08:00
parent
21c374914c
commit
1a3c4f9e5a
@ -17,7 +17,9 @@ 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).
|
**Note**: consider [**magic_enum**](https://github.com/Neargye/magic_enum)
|
||||||
|
(note it requires C++17 and a fairly recent compiler; see
|
||||||
|
[*Limitations*](https://github.com/Neargye/magic_enum/blob/master/doc/limitations.md#readme)).
|
||||||
|
|
||||||
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],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user