Boost logo

Boost :

Subject: Re: [boost] [Better Enums] More complete release - feedback requested
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2015-06-10 13:02:01


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-reflection-supp

and

https://svn.tuebingen.mpg.de/kyb-robotics/TeleKyb/trunk/stacks/telekyb_common/telekyb_defines/src/enum/enum.cpp

?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk