$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Frank Laub (frank.laub_at_[hidden])
Date: 2005-12-22 06:04:57
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