Boost logo

Boost :

Subject: Re: [boost] [range] [1.40] iterator_range::size broken for non-random access iterators
From: Ryan Gallagher (ryan.gallagher_at_[hidden])
Date: 2009-08-21 18:38:32

Eric Niebler <eric <at>> writes:

> Ryan Gallagher wrote:
> > Eric Niebler <eric <at>> writes:
> >
> >> Ryan Gallagher wrote:
> >> To get the old behavior, you can use boost::distance in
> >> boost/range/distance.hpp.
> >
> > I never call size directly though, it's just being used through sub_range<>
> > although I'm not sure why this method is being instantiated.

Sigh, my mistake...I found the call to sub_range<>::size(), the error message
was pointing me elsewhere for some reason. I'll change it as you suggest.
Thanks for your patience,


Boost list run by bdawes at, gregod at, cpdaniel at, john at