[Bug libstdc++/51823] reverse iterator instantiated with POD type returns uninitialized values + work around
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 11 13:16:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51823
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-11 13:16:16 UTC ---
(In reply to comment #0)
> Consider an iterator class that implements the requirements of a
> forward_iterator. We underlying datatype is always POD and the operator*()
> member of the iterator returns the results by value, since it is POD anyway.
The iterator requirements [iterator.iterators] say operator* must return
iterator_traits<some_iterator>::reference
More information about the Gcc-bugs
mailing list