Re: [boost] Is there interest in a library for string-convertible enums?

29 Oct
2014
29 Oct
'14
2:16 a.m.
I have also offered a class for doing this as well, although it didn't draw the interest that this one did. Here was my attempt at it with a test/example class: https://gist.github.com/coderforlife/6d8bac451d49dd1a0c81 Supports value to string and string to value, including multiple values with | between them, meaning all combinations can be round-tripped. Supports default power-of-two values and custom values, listing all valid values (as enum types, but each is easily convertible to integral and string values), Although you cannot specify custom string names for an enum value that is not the "STRINGIZE" name, however you can choose to have multiple enum entries with the same value and different names. Jeff
3895
Age (days ago)
3895
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jeffrey Bush