Boost logo

Boost Users :

Subject: Re: [Boost-users] [mpl] equal_to compile problems
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-19 10:42:14


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)

In Christ,
Steven Watanabe


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