
17 Jan
2006
17 Jan
'06
5:51 p.m.
On 1/15/06, Marc VIALA <mviala@acticm.com> wrote:
Hi,
May be I've missed some messages of the thread, see message here after, but is there any method that would return the index of the enumeration element when using BOOST_ENUM_VALUES.
It was discussed and I agreed to add a method like this but I didn't around to it until recently. The new method is called index(). With it you can do a switch. I'm using BOOST_ENUM rev 4.5 I just uploaded a new version 4.6 to the vault. Thanks in advance.
You're welcome and thanks for your input.
-Frank