
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