Revisions to iterator requirements - status?
Does anyone know anything about the status of the new iterator
requirements that have been proposed, e.g. in N2758 / N2777 papers or
at the Boost website , ? It looks like essentially nothing has
happened with this since concepts were dropped from C++0x. Did folks
The last paper I can find regarding changes to iterators for C++ 2011
is N3066, which fixes some minor issues but in particular still does
NOT allow for most random-access "transform" or "proxy" iterators. I
also double-checked the latest standard draft N3337, and it looks like
ForwardIterators still require that
iterator_traits<ForwardIter>::reference is a real reference. (24.2.5,
It's rather disappointing that even in C++ 2011, I still can't legally
define a random-access iterator class whose reference typedef (and
return type of unary operator*()) is 'int' rather than 'const int &'.
And indeed the standard still contradicts itself as to whether or not
std::vector<bool>::iterator is random-access; this actual issue was
mentioned in N3066 but it apparently did not propose a fix.
Thanks in advance to anyone who has more information,
- Kevin B. McCarty
|All times are GMT. The time now is 06:02 AM.|
SEO by vBSEO ©2010, Crawlability, Inc.