
19 Sep
2008
19 Sep
'08
12:51 p.m.
Hi, my first steps in mpl are very rough. I have enum { RELEASE_LEVEL = (10 << 4), ... }; and want to check on an appropriate enum number: #include <boost/mpl/equal_to.hpp> #include <boost/mpl/int.hpp> #include <boost/mpl/placeholders.hpp> namespace { namespace mpl = boost::mpl; using namespace mpl::placeholders; typedef mpl::equal_to<_1, mpl::int_<0xC> >::type release_candidate; } ... if(release_candidate<RELEASE_LEVEL>::value) return a; else return b; which doesn't compile. Where is my fault and how can I fix it? Thanks, Olaf