Boost logo

Boost Users :

Subject: Re: [Boost-users] [mpl] equal_to compile problems
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2008-09-19 14:22:21


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net