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

@@ -1261,8 +1261,8 @@ use [*Boost.Container]? There are several reasons for that:
* [@https://github.com/boostorg/container/pull/84 GitHub #84: ['"Allow vector to be assigned to itself"]].
* [@https://github.com/boostorg/container/pull/85 GitHub #85: ['"container: misc-typos"]].
* [@https://github.com/boostorg/container/pull/86 GitHub #86: ['"Add missing warning re-enabling include"]].
* [@https://github.com/boostorg/container/issues/90 GitHub #90: ['"UBSAN failures detected in preflight CI PR "]].
* [@https://github.com/boostorg/container/issues/89 GitHub #89: ['"UBSAN failures detected in preflight CI PR"]].
* [@https://github.com/boostorg/container/issues/90 GitHub #90: ['"Build fails on clang-5 with libstdc++7-dev (C++17 issue)"]].
[endsect]

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;
}