
22 Dec
2005
22 Dec
'05
11:04 a.m.
One alternative is to do this instead: BOOST_ENUM_VALUES(BlockType_t, const char*, (SampleIfg)("Sample Interferogram") (SampleSpec)("Sample Spectrum") (SamplePhase)("Sample Phase") (RefIfg)("Reference Interferogram") ) One principle idea of the Boost.Enum library is to hide the fact that integers are really doing the dirty work. I suppose in this case we could expose a 'raw' or 'native' method that would return the index number of the enumeration element. This could then be used for your vector index. Would this work for you? -Frank