forked from boostorg/unordered
Prove relevance of strong typedef for node-based foa containers
This commit is contained in:
@@ -701,7 +701,7 @@ namespace insert_tests {
|
||||
pointer_constructible(int x_) : x(x_) {}
|
||||
pointer_constructible(pointer_constructible const& p) : x(p.x) {}
|
||||
pointer_constructible(pointer_constructible* const&) : x(-1) {}
|
||||
pointer_constructible(BOOST_RV_REF(pointer_constructible*)) : x(-2) {}
|
||||
pointer_constructible(BOOST_RV_REF(pointer_constructible*)) : x(-1) {}
|
||||
};
|
||||
|
||||
struct pointer_constructible_hash
|
||||
@@ -733,11 +733,12 @@ namespace insert_tests {
|
||||
pointer_constructible_equal_to, test::allocator1<pointer_constructible> >
|
||||
set, set2;
|
||||
|
||||
pointer_constructible pc(1337), *addr_pc = &pc;
|
||||
pointer_constructible pc(1337);
|
||||
pointer_constructible* const addr_pc = &pc;
|
||||
|
||||
set.insert(pc); // 1337
|
||||
set.insert(addr_pc); // -1
|
||||
set.insert(&pc); // -1
|
||||
set.insert(addr_pc); // -1
|
||||
|
||||
BOOST_TEST_EQ(set.size(), 2u);
|
||||
BOOST_TEST(set.find(pc) != set.end());
|
||||
|
||||
Reference in New Issue
Block a user