$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [mpl] equal_to compile problems
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2008-09-19 08:51:14
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