[mpl] equal_to compile problems

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

AMDG Olaf Peter wrote:
typedef mpl::equal_to<_1, mpl::int_<0xC> >::type release_candidate;
Don't use ::type here: typedef mpl::equal_to<_1, mpl::int_<0xC> > release_candidate;
if(release_candidate
::value)
Use apply and the integral wrappers:
if(mpl::apply

Steven Watanabe schrieb:
AMDG
Olaf Peter wrote:
typedef mpl::equal_to<_1, mpl::int_<0xC> >::type release_candidate;
Don't use ::type here:
typedef mpl::equal_to<_1, mpl::int_<0xC> > release_candidate;
if(release_candidate
::value) Use apply and the integral wrappers:
if(mpl::apply
>::value)
must be:
if(mpl::apply
participants (2)
-
Olaf Peter
-
Steven Watanabe