
7 Dec
2005
7 Dec
'05
10:28 p.m.
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