Boost logo

Boost :

Subject: Re: [boost] [fusion] joint_view bug?
From: Eric Niebler (eric_at_[hidden])
Date: 2011-08-06 20:09:07


On 8/6/2011 4:52 PM, Joel de Guzman wrote:
> On 8/7/2011 5:09 AM, Eric Niebler wrote:
>> template <typename Tag>
>> struct distance_impl
>> {
>> // default implementation
>> template <typename First, typename Last>
>> struct apply : distance_detail::linear_distance<First, Last>
>> {
>> BOOST_MPL_ASSERT_NOT((traits::is_random_access<First>));
>> BOOST_MPL_ASSERT_NOT((traits::is_random_access<Last>));
>> };
>> };
>>
>> In this case, First is a joint_view iterator and Last is a vector
>> iterator, which is indeed random-access. If I simply comment out the
>> compile-time asserts, the code compiles and works as expected. I think
>> these asserts are bogus. OK to remove them?
>
> Indeed, it looks bogus. Feel free to remove, Eric.

Committed: https://svn.boost.org/trac/boost/changeset/73583

Thanks Joel.

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

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