Re: [boost] Proposed patch for boost::counting_iterator

13 Mar
2008
13 Mar
'08
2:14 p.m.
on Thu Mar 13 2008, "Sebastian Theophil" <stheophil-AT-think-cell.com> wrote:
I do, thanks. Please follow up there.
Yep.
Sure they do.
It has to do with the C++03 iterator requirements. If it were not a reference, then counting_iterator wouldn't be a valid forward iterator and we'd have to call it an input iterator.
Maybe the trick is to add a parameter to counting_iterator that allows one to optionally explicitly specify the reference type. -- Dave Abrahams Boost Consulting http://boost-consulting.com
6311
Age (days ago)
6311
Last active (days ago)
0 comments
1 participants
participants (1)
-
David Abrahams