On 06-06-2015 05:21, Anton Bachin wrote:
Hello,
I posted to the mailing list some weeks ago concerning a reflective enum library. I’ve since done a lot of work and made a new release. I’d like to get feedback from anyone that is interested.
Some suggestions: A. get rid of the leading _ un function names. B. make size a constexpr function C. add to_integral() (or is that done by a static cast?) Somthing to consider: One reaching for an enum, one very often needs a small statically sized, immutable bidirectional map. That is, the mapped strings needs not be the name of the enum constant. Key-value pair iteration may be useful and Thanks -Thorsten PS: I assume you might have seen http://www.codeproject.com/Articles/318690/C-Non-intrusive-enum-class-with-r... and https://svn.tuebingen.mpg.de/kyb-robotics/TeleKyb/trunk/stacks/telekyb_commo... ?