|
Boost : |
Subject: Re: [boost] [Better Enums] More complete release - feedback requested
From: Thorsten Ottosen (thorsten.ottosen_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
?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk