From 4fc4cfd8d8abaef04dfcce2e8e75e8d4fa586000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 13 Nov 2018 23:17:51 +0100 Subject: [PATCH] Fix GitHub #89 ("Build fails on clang-5 with libstdc++7-dev (C++17 issue)") --- doc/container.qbk | 4 ++-- test/set_test.cpp | 24 ------------------------ 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/doc/container.qbk b/doc/container.qbk index 2061f27..6d065fb 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -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] diff --git a/test/set_test.cpp b/test/set_test.cpp index 9164222..39ab1b7 100644 --- a/test/set_test.cpp +++ b/test/set_test.cpp @@ -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; }