Boost logo

Boost Users :

Subject: Re: [Boost-users] iterator_facade and distance()
From: Andrej van der Zee (andrejvanderzee_at_[hidden])
Date: 2011-04-16 08:35:29


Hi Dave,

Thank you for your email.

>
> You misspelled "distance_to."  Fix the spelling and it should work better.
>

Indeed a typo. Unfortunately, changing it to the method below does not
change anything. The method is never called even though I explicitly
call std::distance(), which, I assume, should call eventually
distance_to(),

   facade_t::difference_type distance_to(const
data_stream::const_iterator & to) const
   {
     abort();
   }

Cheers,
Andrej


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