From nobody Mon Jan 6 23:06:56 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YRqZ86STsz5kNCR; Mon, 06 Jan 2025 23:06:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YRqZ830Mcz4tph; Mon, 6 Jan 2025 23:06:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736204816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PKgH7uYHtMXgUoEPmG3pfMUyVJ0rxuPgTpYYwyNwqBw=; b=egM8wisgk8EcFpbEC6rrXzq+TSmrPkGMbGcbFHyBpdAAnZBjti+8ijSC3ZMsbboEUr3Nza /KYGgru7E6TnX+L7mGO14qtZT9eusgYFb4SFqkp7BBymIPk8zldBLAPfyfa5JqCQm7RbPN c7AgFxNbX5vhBhl9MkpTRY+Fu0fKvIVfAPWMJ4AAXmjCeeVOukyAE7aBevgRJPtF7ZxRXt e+6zM69PnhXYDLqa4+AAd4bvuhe0BXzPtI7LRFhFvEObG/YrKaUoQkd0U+0WNDA6G/qSYw 1a+SeMNLq07qmoX/NZFIwUxXydZ6eW+b2Lm4ZQCJaw50ZsGYn6O9fkaniXyTOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736204816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PKgH7uYHtMXgUoEPmG3pfMUyVJ0rxuPgTpYYwyNwqBw=; b=Y/jRv6ypSKbkDDaOWe2+nwWJ8fMk7rbnepdlEwke4mN21ht1fZO9sN2j8fJ2lpxf/XgaqO o4MptdmIc6mj4h2kE5L95EuJzxqJPgrdop3EucQl5mOLOWQB0QqL4ENWqodaDFyLyP2lQG eKdLl/JMx4hVcy5W+chQz3ylZ87kBMhCZBBmTwUrxTvgau7zG20ik9L6zlVcbWVBrc5YKt XHs+YK93k35ndu78G4BqtwZ6uZKL25j0bDlDA8zou2THWh0+CqQp+ZBQnwP56LgeeoIgKO Q0o8u4KzZGjEYx3dqJk28NyxQFRagWy3axkIPr6tL8I0KE4VhPousWJ4SlIZSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736204816; a=rsa-sha256; cv=none; b=fIpf5LU9geekEHBTmMNz5Q4iNuuoCYLs63nnRnwPR831PtdG3iNoVV+k2Z6QHwEn/hL+E1 tqbitD2xsz7GF5Kmkn+1PT0Oyvo6m491FkB5bNtHd9DUcwvqKvZ4isQsxzAwEWtC+csx3e X8ktBC8DGmEMXZdFMI8lV0/TY0X3UBBSAvBfkujwbDdJ72SJBRvcwaw7q5oSIZ5wDONVkL KcTHkCv9qzFkkgnASeoUwFni3FyubHv5dZ1QfU5BKuuS5rqXKuV0AnF/Pi6Cd+ovDBIgxL 9ZU5erfvz/2DxNgOTHB1UmgJ9NEEtNVU+MLkmE9eeOli9aZOs1BtPIGHixoUog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YRqZ82WSZzlHT; Mon, 06 Jan 2025 23:06:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 506N6uIF070058; Mon, 6 Jan 2025 23:06:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 506N6ul9070055; Mon, 6 Jan 2025 23:06:56 GMT (envelope-from git) Date: Mon, 6 Jan 2025 23:06:56 GMT Message-Id: <202501062306.506N6ul9070055@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: b9a02d30092f - main - math/polymake: fix build with clang 19 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b9a02d30092fd9f590b4cd38a80ca3cc46ffca03 Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=b9a02d30092fd9f590b4cd38a80ca3cc46ffca03 commit b9a02d30092fd9f590b4cd38a80ca3cc46ffca03 Author: Philipp Ost AuthorDate: 2025-01-04 18:19:36 +0000 Commit: Robert Clausecker CommitDate: 2025-01-06 23:06:15 +0000 math/polymake: fix build with clang 19 PR: 283827 MFH: 2025Q1 Obtained from: https://forum.polymake.org/viewtopic.php?p=4159 --- math/polymake/Makefile | 1 + .../patch-external_permlib_include_permlib_bsgs.h | 11 ++ ...include_permlib_predicate_identity__predicate.h | 11 ++ ...ib_predicate_pointwise__stabilizer__predicate.h | 11 ++ ...ermlib_predicate_stabilizes__point__predicate.h | 11 ++ ...include_permlib_predicate_subgroup__predicate.h | 11 ++ ...ermlib_search_partition_backtrack__refinement.h | 11 ++ ...l_permlib_include_permlib_sorter_base__sorter.h | 11 ++ ..._permlib_include_permlib_sorter_group__sorter.h | 11 ++ ...ermlib_include_permlib_sorter_trivial__sorter.h | 11 ++ .../files/patch-lib_core_include_ContainerChain.h | 131 +++++++++++++++++++++ .../files/patch-lib_core_include_GenericMatrix.h | 17 +++ ...tch-lib_core_include_internal_pool__allocator.h | 14 +++ .../polymake/files/patch-lib_core_include_optional | 38 ++++++ 14 files changed, 300 insertions(+) diff --git a/math/polymake/Makefile b/math/polymake/Makefile index f771c693f797..55312ff415cd 100644 --- a/math/polymake/Makefile +++ b/math/polymake/Makefile @@ -1,5 +1,6 @@ PORTNAME= polymake DISTVERSION= 4.13 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/V${DISTVERSION}/ \ https://polymake.org/lib/exe/fetch.php/download/ diff --git a/math/polymake/files/patch-external_permlib_include_permlib_bsgs.h b/math/polymake/files/patch-external_permlib_include_permlib_bsgs.h new file mode 100644 index 000000000000..176060a8a967 --- /dev/null +++ b/math/polymake/files/patch-external_permlib_include_permlib_bsgs.h @@ -0,0 +1,11 @@ +--- external/permlib/include/permlib/bsgs.h.orig 2024-09-24 09:32:47 UTC ++++ external/permlib/include/permlib/bsgs.h +@@ -461,7 +461,7 @@ template + * stabilizer chain are next to each other. + */ + template +-class StrongGeneratingSetSorter : public std::binary_function { ++class StrongGeneratingSetSorter { + public: + /** + * @param baseBegin begin-iterator(dom_int) to the base relative to which the strong generating set is to be sorted diff --git a/math/polymake/files/patch-external_permlib_include_permlib_predicate_identity__predicate.h b/math/polymake/files/patch-external_permlib_include_permlib_predicate_identity__predicate.h new file mode 100644 index 000000000000..0f8e6404edf9 --- /dev/null +++ b/math/polymake/files/patch-external_permlib_include_permlib_predicate_identity__predicate.h @@ -0,0 +1,11 @@ +--- external/permlib/include/permlib/predicate/identity_predicate.h.orig 2024-09-24 09:32:47 UTC ++++ external/permlib/include/permlib/predicate/identity_predicate.h +@@ -39,7 +39,7 @@ template + + /// predicate matching a permutation if it stabilizes a given list of points pointwise + template +-class IdentityPredicate : public std::unary_function { ++class IdentityPredicate { + public: + /// evaluate predicate + bool operator()(const typename PERM::ptr &p) const { diff --git a/math/polymake/files/patch-external_permlib_include_permlib_predicate_pointwise__stabilizer__predicate.h b/math/polymake/files/patch-external_permlib_include_permlib_predicate_pointwise__stabilizer__predicate.h new file mode 100644 index 000000000000..176cdb17ca29 --- /dev/null +++ b/math/polymake/files/patch-external_permlib_include_permlib_predicate_pointwise__stabilizer__predicate.h @@ -0,0 +1,11 @@ +--- external/permlib/include/permlib/predicate/pointwise_stabilizer_predicate.h.orig 2024-09-24 09:32:47 UTC ++++ external/permlib/include/permlib/predicate/pointwise_stabilizer_predicate.h +@@ -39,7 +39,7 @@ template + + /// predicate matching a permutation if it stabilizes a given list of points pointwise + template +-class PointwiseStabilizerPredicate : public std::unary_function { ++class PointwiseStabilizerPredicate { + public: + /// constructor + /** diff --git a/math/polymake/files/patch-external_permlib_include_permlib_predicate_stabilizes__point__predicate.h b/math/polymake/files/patch-external_permlib_include_permlib_predicate_stabilizes__point__predicate.h new file mode 100644 index 000000000000..311db4d802ed --- /dev/null +++ b/math/polymake/files/patch-external_permlib_include_permlib_predicate_stabilizes__point__predicate.h @@ -0,0 +1,11 @@ +--- external/permlib/include/permlib/predicate/stabilizes_point_predicate.h.orig 2024-09-24 09:32:47 UTC ++++ external/permlib/include/permlib/predicate/stabilizes_point_predicate.h +@@ -39,7 +39,7 @@ template + + /// predicate matching points that are stabilized by given permutations + template +-class StabilizesPointPredicate : public std::unary_function { ++class StabilizesPointPredicate { + public: + /// constructor + /** diff --git a/math/polymake/files/patch-external_permlib_include_permlib_predicate_subgroup__predicate.h b/math/polymake/files/patch-external_permlib_include_permlib_predicate_subgroup__predicate.h new file mode 100644 index 000000000000..93ca0a5b9a9e --- /dev/null +++ b/math/polymake/files/patch-external_permlib_include_permlib_predicate_subgroup__predicate.h @@ -0,0 +1,11 @@ +--- external/permlib/include/permlib/predicate/subgroup_predicate.h.orig 2024-09-24 09:32:47 UTC ++++ external/permlib/include/permlib/predicate/subgroup_predicate.h +@@ -42,7 +42,7 @@ template + + /// abstract base class for subgroup (and coset) predicates + template +-class SubgroupPredicate : public std::unary_function { ++class SubgroupPredicate { + public: + /// virtual destructor + virtual ~SubgroupPredicate() {} diff --git a/math/polymake/files/patch-external_permlib_include_permlib_search_partition_backtrack__refinement.h b/math/polymake/files/patch-external_permlib_include_permlib_search_partition_backtrack__refinement.h new file mode 100644 index 000000000000..4ac79394f799 --- /dev/null +++ b/math/polymake/files/patch-external_permlib_include_permlib_search_partition_backtrack__refinement.h @@ -0,0 +1,11 @@ +--- external/permlib/include/permlib/search/partition/backtrack_refinement.h.orig 2024-09-24 09:32:47 UTC ++++ external/permlib/include/permlib/search/partition/backtrack_refinement.h +@@ -67,7 +67,7 @@ class BacktrackRefinement : public Refinement { + + typedef typename Refinement::RefinementPtr RefinementPtr; + +- struct RefinementSorter : public std::binary_function { ++ struct RefinementSorter { + RefinementSorter(const BaseSorterByReference& sorter, const Partition* pi) : m_sorter(sorter), m_pi(pi) {} + + bool operator()(RefinementPtr a, RefinementPtr b) const { diff --git a/math/polymake/files/patch-external_permlib_include_permlib_sorter_base__sorter.h b/math/polymake/files/patch-external_permlib_include_permlib_sorter_base__sorter.h new file mode 100644 index 000000000000..2c7604b05d84 --- /dev/null +++ b/math/polymake/files/patch-external_permlib_include_permlib_sorter_base__sorter.h @@ -0,0 +1,11 @@ +--- external/permlib/include/permlib/sorter/base_sorter.h.orig 2024-09-24 09:32:47 UTC ++++ external/permlib/include/permlib/sorter/base_sorter.h +@@ -39,7 +39,7 @@ template + + /// A sorter that sorts a sequence with respect to a given input ordering + template +-class OrderedSorter : public std::binary_function { ++class OrderedSorter { + public: + /// true iff a preceeds b in given sequence + bool operator() (unsigned long a, unsigned long b) const { diff --git a/math/polymake/files/patch-external_permlib_include_permlib_sorter_group__sorter.h b/math/polymake/files/patch-external_permlib_include_permlib_sorter_group__sorter.h new file mode 100644 index 000000000000..7cf655ca5d21 --- /dev/null +++ b/math/polymake/files/patch-external_permlib_include_permlib_sorter_group__sorter.h @@ -0,0 +1,11 @@ +--- external/permlib/include/permlib/sorter/group_sorter.h.orig 2024-09-24 09:32:47 UTC ++++ external/permlib/include/permlib/sorter/group_sorter.h +@@ -39,7 +39,7 @@ template + + /// A sorter that sorts a sequence of permutations with respect to a ordering induced by a base + template +-class GroupSorter : public std::binary_function{ ++class GroupSorter { + public: + /// constructor + /** diff --git a/math/polymake/files/patch-external_permlib_include_permlib_sorter_trivial__sorter.h b/math/polymake/files/patch-external_permlib_include_permlib_sorter_trivial__sorter.h new file mode 100644 index 000000000000..dcc9ea434dbb --- /dev/null +++ b/math/polymake/files/patch-external_permlib_include_permlib_sorter_trivial__sorter.h @@ -0,0 +1,11 @@ +--- external/permlib/include/permlib/sorter/trivial_sorter.h.orig 2024-09-24 09:32:47 UTC ++++ external/permlib/include/permlib/sorter/trivial_sorter.h +@@ -36,7 +36,7 @@ namespace permlib { + namespace permlib { + + /// A sorter that sorts a sequence in natural numerical order (1 < 2 < 3 < ...) +-class TrivialSorter : public std::binary_function{ ++class TrivialSorter { + public: + /// true iff a < b + bool operator() (unsigned long a, unsigned long b) const { diff --git a/math/polymake/files/patch-lib_core_include_ContainerChain.h b/math/polymake/files/patch-lib_core_include_ContainerChain.h new file mode 100644 index 000000000000..bff622bf092a --- /dev/null +++ b/math/polymake/files/patch-lib_core_include_ContainerChain.h @@ -0,0 +1,131 @@ +--- lib/core/include/ContainerChain.h.orig 2024-09-24 09:32:47 UTC ++++ lib/core/include/ContainerChain.h +@@ -1128,15 +1128,15 @@ class modified_container_tuple_impl (public) + + Int size() const + { +- return this->manip_top().template get_container(size_constant()).size(); ++ return this->manip_top().get_container(size_constant()).size(); + } + Int dim() const + { +- return get_dim(this->manip_top().template get_container(size_constant())); ++ return get_dim(this->manip_top().get_container(size_constant())); + } + bool empty() const + { +- return this->manip_top().template get_container(size_constant()).empty(); ++ return this->manip_top().get_container(size_constant()).empty(); + } + + decltype(auto) front() +@@ -1153,40 +1153,40 @@ class modified_container_tuple_impl (public) + iterator make_begin(std::index_sequence, mlist) + { + return iterator(this->manip_top().get_operation(), +- ensure(this->manip_top().template get_container(size_constant()), muntag_t()).begin()...); ++ ensure(this->manip_top().get_container(size_constant()), muntag_t()).begin()...); + } + + template + iterator make_end(std::index_sequence, mlist) + { + return iterator(this->manip_top().get_operation(), +- ensure(this->manip_top().template get_container(size_constant()), muntag_t()).end()...); ++ ensure(this->manip_top().get_container(size_constant()), muntag_t()).end()...); + } + + template + const_iterator make_begin(std::index_sequence, mlist) const + { + return const_iterator(this->manip_top().get_operation(), +- ensure(this->manip_top().template get_container(size_constant()), muntag_t()).begin()...); ++ ensure(this->manip_top().get_container(size_constant()), muntag_t()).begin()...); + } + + template + const_iterator make_end(std::index_sequence, mlist) const + { + return const_iterator(this->manip_top().get_operation(), +- ensure(this->manip_top().template get_container(size_constant()), muntag_t()).end()...); ++ ensure(this->manip_top().get_container(size_constant()), muntag_t()).end()...); + } + + template + decltype(auto) make_front(std::index_sequence) + { +- return this->manip_top().get_operation()( this->manip_top().template get_container(size_constant()).front()... ); ++ return this->manip_top().get_operation()( this->manip_top().get_container(size_constant()).front()... ); + } + + template + decltype(auto) make_front(std::index_sequence) const + { +- return this->manip_top().get_operation()( this->manip_top().template get_container(size_constant()).front()... ); ++ return this->manip_top().get_operation()( this->manip_top().get_container(size_constant()).front()... ); + } + }; + +@@ -1230,40 +1230,40 @@ class modified_container_tuple_impl, mlist) + { + return reverse_iterator(this->manip_top().get_operation(), +- ensure(this->manip_top().template get_container(size_constant()), muntag_t()).rbegin()...); ++ ensure(this->manip_top().get_container(size_constant()), muntag_t()).rbegin()...); + } + + template + reverse_iterator make_rend(std::index_sequence, mlist) + { + return reverse_iterator(this->manip_top().get_operation(), +- ensure(this->manip_top().template get_container(size_constant()), muntag_t()).rend()...); ++ ensure(this->manip_top().get_container(size_constant()), muntag_t()).rend()...); + } + + template + const_reverse_iterator make_rbegin(std::index_sequence, mlist) const + { + return const_reverse_iterator(this->manip_top().get_operation(), +- ensure(this->manip_top().template get_container(size_constant()), muntag_t()).rbegin()...); ++ ensure(this->manip_top().get_container(size_constant()), muntag_t()).rbegin()...); + } + + template + const_reverse_iterator make_rend(std::index_sequence, mlist) const + { + return const_reverse_iterator(this->manip_top().get_operation(), +- ensure(this->manip_top().template get_container(size_constant()), muntag_t()).rend()...); ++ ensure(this->manip_top().get_container(size_constant()), muntag_t()).rend()...); + } + + template + decltype(auto) make_back(std::index_sequence) + { +- return this->manip_top().get_operation()( this->manip_top().template get_container(size_constant()).back()... ); ++ return this->manip_top().get_operation()( this->manip_top().get_container(size_constant()).back()... ); + } + + template + decltype(auto) make_back(std::index_sequence) const + { +- return this->manip_top().get_operation()( this->manip_top().template get_container(size_constant()).back()... ); ++ return this->manip_top().get_operation()( this->manip_top().get_container(size_constant()).back()... ); + } + }; + +@@ -1285,13 +1285,13 @@ class modified_container_tuple_impl + decltype(auto) make_random(Int i, std::index_sequence) + { +- return this->manip_top().get_operation()( this->manip_top().template get_container(size_constant())[i]... ); ++ return this->manip_top().get_operation()( this->manip_top().get_container(size_constant())[i]... ); + } + + template + decltype(auto) make_random(Int i, std::index_sequence) const + { +- return this->manip_top().get_operation()( this->manip_top().template get_container(size_constant())[i]... ); ++ return this->manip_top().get_operation()( this->manip_top().get_container(size_constant())[i]... ); + } + }; + diff --git a/math/polymake/files/patch-lib_core_include_GenericMatrix.h b/math/polymake/files/patch-lib_core_include_GenericMatrix.h new file mode 100644 index 000000000000..62ade36b0d90 --- /dev/null +++ b/math/polymake/files/patch-lib_core_include_GenericMatrix.h @@ -0,0 +1,17 @@ +--- lib/core/include/GenericMatrix.h.orig 2024-09-24 09:32:47 UTC ++++ lib/core/include/GenericMatrix.h +@@ -1525,12 +1525,12 @@ class ConcatRows< BlockMatrix + decltype(auto) get_container(size_constant) + { +- return concat_rows(this->hidden().template get_container(size_constant())); ++ return concat_rows(this->hidden().get_container(size_constant())); + } + template + decltype(auto) get_container(size_constant) const + { +- return concat_rows(this->hidden().template get_container(size_constant())); ++ return concat_rows(this->hidden().get_container(size_constant())); + } + + ConcatRows& operator= (const ConcatRows& other) { return ConcatRows::generic_type::operator=(other); } diff --git a/math/polymake/files/patch-lib_core_include_internal_pool__allocator.h b/math/polymake/files/patch-lib_core_include_internal_pool__allocator.h new file mode 100644 index 000000000000..f4c4252e2d86 --- /dev/null +++ b/math/polymake/files/patch-lib_core_include_internal_pool__allocator.h @@ -0,0 +1,14 @@ +--- lib/core/include/internal/pool_allocator.h.orig 2024-09-24 09:32:47 UTC ++++ lib/core/include/internal/pool_allocator.h +@@ -34,7 +34,11 @@ class allocator : public PM_ALLOCATOR_BASE { (pu + public: + void* allocate(std::size_t n) + { ++#if __cplusplus < 201703L + return base_t::allocate(n, nullptr); ++#else ++ return base_t::allocate(n); ++#endif + } + void deallocate(void* p, std::size_t n) + { diff --git a/math/polymake/files/patch-lib_core_include_optional b/math/polymake/files/patch-lib_core_include_optional new file mode 100644 index 000000000000..cb7d9756dc41 --- /dev/null +++ b/math/polymake/files/patch-lib_core_include_optional @@ -0,0 +1,38 @@ +--- lib/core/include/optional.orig 2024-09-24 09:32:47 UTC ++++ lib/core/include/optional +@@ -7,6 +7,8 @@ + // Moreover, older clangs produce strange errors even in combination with libstdc++. + // For this configuration, we include a minimal implementation just covering our needs. + ++#if __cplusplus < 201703L ++ + #if defined(__clang__) && (defined(_LIBCPP_STD_VER) || __clang_major__ < 4) + + #include "polymake/internal/type_union.h" +@@ -76,8 +78,6 @@ using pm::make_optional; + + #else // GCC or clang >= 4 + +-#if __cplusplus < 201703L +- + # include + + namespace polymake { +@@ -91,6 +91,8 @@ using std::experimental::make_optional; + using std::experimental::make_optional; + } + ++#endif ++ + #else + + #include +@@ -105,8 +107,6 @@ using std::make_optional; + using std::nullopt; + using std::make_optional; + } +- +-#endif + + #endif +