libstdc++: Fix access error in __gnu_test::uneq_allocator
The operator== function is only a friend of the LHS argument, so cannot access the private member of the RHS argument. Use the public accessor instead. libstdc++-v3/ChangeLog: * testsuite/util/testsuite_allocator.h (uneq_allocator): Fix equality operator for heterogeneous comparisons.
This commit is contained in:
parent
dc2dfda0ec
commit
0585daf7de
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ namespace __gnu_test
|
|||
operator==(const uneq_allocator& a,
|
||||
const uneq_allocator<Tp1,
|
||||
typename AllocTraits::template rebind<Tp1>::other>& b)
|
||||
{ return a.personality == b.personality; }
|
||||
{ return a.personality == b.get_personality(); }
|
||||
|
||||
template<typename Tp1>
|
||||
friend inline bool
|
||||
|
|
Loading…
Add table
Reference in a new issue