Boost logo

Boost Users :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2007-01-29 02:44:20


Ben,

> For illustration purposes I created the following code that iterates
> through a sequence and accumulates the distances between the current
> iterator and the beginning of the sequence. Somehow this code works
> for normal ranges (range1 and range2) but fails to compile for
> joint_view range3 (80-plus errors). Changing the call to distance to
> compare between begin and end or between _2 and _2 (self) works. I
> am at a loss here. Can someone point out what I am doing wrong?

Your code is perfectly okay, the failure is due to a bug in the
library (fixed in the CVS,
http://boost.cvs.sourceforge.net/boost/boost/boost/mpl/aux_/lambda_spec.hpp?r1=1.8&r2=1.9).

Thanks for the report,

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

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