Boost logo

Boost :

Subject: Re: [boost] Formal Review: Boost.RangeEx -- Comments from Sean Parent from Adope
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-02-26 17:57:34


Thorsten Ottosen wrote:

> sentinel range (a range denoted by an iterator and a sentinel, a NTBS is
> an example)
>
> I believe such concepts could also clean up the char* vs. char[] for
> NTBS ambiguities as well as keep cstr library efficiency.

You just need to allow the past-the-end iterator to be of a different
type for that.
That way, you can get something equivalent to a hasNext() function.


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