From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-05-24 09:36:27
> Matias Capeletto wrote:
>> 1) Do you think that the range functions should return a sub_range<map_type>
>> instead of a std::pair<iter,iter>?
> 'boost::iterator_range' or 'std::pair' seems a good choice.
> 'boost::sub_range' propagates const-ness.
> 'boost::begin(x.range(...,...))' returns a "constant" iterator,
> because a rvalue cannot be bound to non-const-reference.
> In fact, I still don't know where 'boost::sub_range' is useful.
> Well, one thing I am a little worried about is that
> 'boost::iterator_range' doesn't work with 'boost::is_convertible'.
Could you explain please?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk