This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix safe iterator inconsistent assertion


On 21/06/18 07:36 +0200, François Dumont wrote:
Working on iterator == operator I noticed that a comparison in _Safe_iterator was inconsistent.

    * include/debug/debug.h

Wrong filename in the ChangeLog here.

    (_Safe_iterator<>(const _Safe_iterator<_MutableIterator,>& __x)):
    Compare __x base iterator with a default initialized iterator of the
    same type.

Please say value-initialized not default initialized (that's what
you're actually doing, and [forward.iterators] p2 only makes it
well-defined for value-initialized iterators).

OK with those changes to the ChangeLog, thanks.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]