<div class="gmail_quote">2011/7/22 John M. Dlugosz <span dir="ltr">&lt;<a href="mailto:mpbecey7gu@snkmail.com">mpbecey7gu@snkmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Any thoughts or pointers on the best way to support rendering and parsing of enumerated constants?<br>
Some only need to be printed, as for debug messages.<br>
Others need to be parsed as well, such as from a configuration file.<br>
<br>
I&#39;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.<br></blockquote>
<div><br>There&#39;s Boost.Enums (not part of Boost yet) developed by Vicente, but I&#39;m not sure the status.<br><br>See:<br><a href="http://svn.boost.org/svn/boost/sandbox/enums/libs/enums/doc/html/index.html#boost.enums.users_guide.tutorial.str">http://svn.boost.org/svn/boost/sandbox/enums/libs/enums/doc/html/index.html#boost.enums.users_guide.tutorial.str</a> <br>
</div></div><br>