Boost logo

Geometry :

Subject: [ggl] Re: segment iterators [was: pre-/post-increment op on iterators]
From: Mateusz Loskot (mateusz)
Date: 2009-05-03 12:39:45

Barend Gehrels wrote:
>>>> terators, it is, but it has drawbacks and problems as
>>>> mentioned above.
>>>> To summary, we've two options. Let's discuss which one to use.
>>> The advantages of my proposition are too uncertain compared to the big
>>> drawback you mentioned, so I'd eventually stick to your solution.
>> OK. I will work on it tomorrow.
> Great.
> I just noticed the title of the keynote next week, "Iterators Must Go",
> by Andrei Alexandrescu :-)
> So I asked for segment-iterators, and still think they are very useful
> (we use them a lot!), we'll see what he'll say...

I've submitted prototype of segment_iterator to the repository.
It is in ggl/iterators/segment_iterator.
It's been roughly tested. Some more ideas put in as TODO comments.

Best regards,

Mateusz Loskot,
Charter Member of OSGeo,

Geometry list run by mateusz at