|
Boost : |
From: Frank Laub (frank.laub_at_[hidden])
Date: 2005-12-07 17:28:30
> As a related issue, it might be good to have the a similar struture
> which you can use to map from the enum value to the string value and
> vice versa. This runtime mapping should not require any heap-allocations .
>
> -Thorsten
>
Definately on the same page here. This was my next feature I wanted to add.
Everything works fine so far until the user specifies a value for an
element. Then the parse() feature blows up because it was expecting the
values to be sequential from 0. This is where I want to go with
BOOST_ENUM_VALUES(). It would require an extra column of data where the user
would put their value portion. Then I could construct a map just as you are
describing.
-Frank
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk