Boost logo

Boost :

Subject: Re: [boost] [mpl] at<> example bug?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-08-06 17:12:09


AMDG

On 08/06/2013 12:47 PM, Mathias Gaunard wrote:
> On 06/08/13 01:52, Mostafa wrote:
>> Looks like the example found here:
>> http://www.boost.org/doc/libs/1_54_0/libs/mpl/doc/refmanual/at.html is
>> buggy:
>>
>> BOOST_MPL_ASSERT_RELATION( (at< range, int_<0> >::value), ==, 10 );
>>
>> It should be:
>>
>> BOOST_MPL_ASSERT_RELATION( (at< range, int_<0> >::type::value), ==, 10 );
>
> Both should work.
>

That's only for arithmetic functions.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk