
24 May
2007
24 May
'07
1:36 p.m.
shunsuke skrev:
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? Thanks -Thorsten