]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add relational operators to __gnu_test::PointerBase
authorJonathan Wakely <jwakely@redhat.com>
Thu, 25 May 2023 20:17:19 +0000 (21:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 25 May 2023 23:14:43 +0000 (00:14 +0100)
commit8d2fa90a41567670d2dbd4918d19d21d9bec4a8f
tree9c6bab2390ff016051f786ea3ab4940ff3b6c52b
parentd156c6054200237b707f9fb44ae9958d926b0745
libstdc++: Add relational operators to __gnu_test::PointerBase

The Cpp17Allocator requirements say that an allocator's pointer and
const_pointer types must meet the Cpp17RandomAccessIterator
requirements. That means our PointerBase helper for defining fancy
pointer types should support the full set of relational operators.

libstdc++-v3/ChangeLog:

* testsuite/util/testsuite_allocator.h (PointerBase): Add
relational operators.
libstdc++-v3/testsuite/util/testsuite_allocator.h