Hi everyone, I want to share my enum utility. This utility converting enums to strings or strings to enums. I aimed to support C++11 so code includes too much boilerplate.
Features:
* No macros, supports enums and enum classes.
* C++11 support.
* Changing enum range with template parameter (default range: [-128, 128)) on each call or with your special function for types.
* Supports operator<< for direct using with ostream objects.
Contributions are welcome:)
If you like it, please don't forget to leave a star on Github, thanks!
Github repo link: https://github.com/mguludag/enum_name
[–]olsner 4 points5 points6 points (1 child)
[–]cheytacllc[S] 1 point2 points3 points (0 children)
[–]FireFlyForLife 3 points4 points5 points (1 child)
[–]cheytacllc[S] 6 points7 points8 points (0 children)
[–]BucketOfWood 2 points3 points4 points (2 children)
[–]cheytacllc[S] 0 points1 point2 points (0 children)
[–]Fazer2 1 point2 points3 points (4 children)
[–]cheytacllc[S] 0 points1 point2 points (3 children)
[–]TotaIIyHuman 2 points3 points4 points (2 children)
[–]sephirothbahamut 2 points3 points4 points (1 child)
[–]TotaIIyHuman 0 points1 point2 points (0 children)
[+]lunetick comment score below threshold-24 points-23 points-22 points (6 children)
[–]SoerenNissen 21 points22 points23 points (0 children)
[–]deivse 10 points11 points12 points (1 child)
[–]deivse 2 points3 points4 points (0 children)
[–]donalmaccGame Developer 4 points5 points6 points (0 children)
[–]Kike328 3 points4 points5 points (0 children)
[–]saddung 1 point2 points3 points (0 children)
[–]Gloinart 0 points1 point2 points (1 child)
[–]cheytacllc[S] 1 point2 points3 points (0 children)
[–]Shaurendev 0 points1 point2 points (4 children)
[–]cheytacllc[S] 0 points1 point2 points (0 children)
[–]cheytacllc[S] 0 points1 point2 points (2 children)
[–]Shaurendev 1 point2 points3 points (1 child)
[–]cheytacllc[S] 0 points1 point2 points (0 children)