Recommend magic_enum

[skip ci]
This commit is contained in:
Anton Bachin 2019-08-17 23:05:52 +03:00
parent 1ea7f04bb9
commit 4b76e7783b

View File

@ -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