forked from boostorg/container
Fixed Trac #12256 (set<std::pair<int,int>>::insert cause compilation error in debug configuration in Visual Studio 2012)
This commit is contained in:
@@ -264,6 +264,15 @@ int main ()
|
||||
test_move<set<recursive_set> >();
|
||||
test_move<multiset<recursive_multiset> >();
|
||||
}
|
||||
//Test std::pair value type as tree has workarounds to make old std::pair
|
||||
//implementations movable that can break things
|
||||
{
|
||||
boost::container::set<std::pair<int,int> > s;
|
||||
std::pair<int,int> p(0, 0);
|
||||
s.insert(p);
|
||||
s.emplace(p);
|
||||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////
|
||||
// Testing allocator implementations
|
||||
|
||||
Reference in New Issue
Block a user