libstdc++: Support N3644 "Null Forward Iterators" for testsuite iterators
authorJonathan Wakely <jwakely@redhat.com>
Thu, 27 Feb 2020 13:01:14 +0000 (13:01 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 27 Feb 2020 13:01:14 +0000 (13:01 +0000)
commite94f2542305ccb5c4a3c4e5e8212713747623417
tree985acfb39988bc86e81209a63d6cb410ac6a316e
parente431546ff9f1367538ed1307a1c98fa32fec7a8a
libstdc++: Support N3644 "Null Forward Iterators" for testsuite iterators

Comparing value-initialized forward_iterator_wrapper<T> objects fails an
assertion, but should be valid in C++14 and later.

* testsuite/util/testsuite_iterators.h (forward_iterator_wrapper): Add
equality comparisons that support value-initialized iterators.
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/util/testsuite_iterators.h