29 Jan
2007
29 Jan
'07
7:44 a.m.
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