Fix GitHub #89 ("Build fails on clang-5 with libstdc++7-dev (C++17 issue)")

This commit is contained in:
Ion Gaztañaga
2018-11-13 23:17:51 +01:00
parent be2ff22a82
commit 4fc4cfd8d8
2 changed files with 2 additions and 26 deletions

View File

@@ -605,30 +605,6 @@ int main ()
if(!node_type_test())
return 1;
#ifndef BOOST_CONTAINER_NO_CXX17_CTAD
////////////////////////////////////
// Constructor Template Auto Deduction
////////////////////////////////////
{
auto gold = std::set({ 1, 2, 3 });
auto test = boost::container::set(gold.begin(), gold.end());
if (test.size() != 3)
return 1;
test = boost::container::set(ordered_unique_range, gold.begin(), gold.end());
if (test.size() != 3)
return 1;
}
{
auto gold = std::multiset({ 1, 2, 3 });
auto test = boost::container::multiset(gold.begin(), gold.end());
if (test.size() != 3)
return 1;
test = boost::container::multiset(ordered_range, gold.begin(), gold.end());
if (test.size() != 3)
return 1;
}
#endif
return 0;
}