mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
libstdc++: Add missing equality comparison in new tests [PR117921]
These new tests fail in Debug Mode because the allocator types aren't equality comparable. libstdc++-v3/ChangeLog: PR libstdc++/117921 * testsuite/23_containers/set/modifiers/swap/adl.cc: Add equality comparison for Allocator. * testsuite/23_containers/unordered_set/modifiers/swap-2.cc: Likewise.
This commit is contained in:
committed by
Jonathan Wakely
parent
0b79d8b98e
commit
5cdd78b397
@@ -36,6 +36,7 @@ namespace adl
|
||||
using propagate_on_container_swap = std::true_type;
|
||||
|
||||
friend void swap(Allocator&, Allocator&) { swapped = true; }
|
||||
friend bool operator==(Allocator, Allocator) { return true; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace adl
|
||||
using propagate_on_container_swap = std::true_type;
|
||||
|
||||
friend void swap(Allocator&, Allocator&) { swapped = true; }
|
||||
friend bool operator==(Allocator, Allocator) { return true; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user