Fixed Trac #12256 (set<std::pair<int,int>>::insert cause compilation error in debug configuration in Visual Studio 2012)

This commit is contained in:
Ion Gaztañaga
2016-08-09 00:59:39 +02:00
parent 4122e722a4
commit 37c1558a81
4 changed files with 27 additions and 6 deletions

View File

@@ -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