Boost logo

Boost :

Subject: Re: [boost] [odeint] Iterator semantics
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-07-28 22:27:10


on Wed Jul 11 2012, Karsten Ahnert <karsten.ahnert-AT-ambrosys.de> wrote:

> The second semantically problem is that the end iterator in principle
> does not need to know the stepper as well as the system (lorenz() in the
> above example). But all algorithms from the standard library and
> Boost.Range assume that the begin and end iterator are of same type.
> Therefore you have to put the stepper and the system into the end
> iterator too.
>
> Any ideas or comments about this?

Known issue. I don't know of any truly good answers other than
range-based algorithms that don't require the existence of iterators.
In the meantime, there's Boost.Optional.

-- 
Dave Abrahams
BoostPro Computing                  Software Development        Training
http://www.boostpro.com             Clang/LLVM/EDG Compilers  C++  Boost

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk