Boost logo

Boost Users :

Subject: [Boost-users] Enums to/from Strings
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2011-07-22 01:05:48


Any thoughts or pointers on the best way to support rendering and parsing of enumerated
constants?
Some only need to be printed, as for debug messages.
Others need to be parsed as well, such as from a configuration file.

I'm thinking the solution should provide for uniform access to the conversion including
existing uses such as feeding an enumeration constant to Boost.Format and having it
automatically render as the string.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net