
19 Sep
2008
19 Sep
'08
6:22 p.m.
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<RELEASE_LEVEL>::value)
Use apply and the integral wrappers:
if(mpl::apply<release_candidate, mpl::int_<RELEASE_LEVEL> >::value)
must be: if(mpl::apply<release_candidate, mpl::int_<RELEASE_LEVEL> >::type::value) to compile. Thanks, Olaf