From 9910ada772ff686c644bceeb18fd45433d3b4b1b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 7 Jan 2025 22:52:07 +0200 Subject: [PATCH] Clang considers the specialization ambiguous in C++17 and above, rewrite. Fixes #103. --- include/boost/mp11/algorithm.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/mp11/algorithm.hpp b/include/boost/mp11/algorithm.hpp index 057331a..dd39fba 100644 --- a/include/boost/mp11/algorithm.hpp +++ b/include/boost/mp11/algorithm.hpp @@ -348,21 +348,21 @@ template using mp_drop = mp_drop_c namespace detail { -template struct mp_from_sequence_impl; +template struct mp_from_sequence_impl; -template class S, class U, U... J, class F> struct mp_from_sequence_impl, F> +template class S, class U, U... J, class F> struct mp_from_sequence_impl, F, false> { using type = mp_list_c; }; -template class S, class U, U... J> struct mp_from_sequence_impl, mp_int<0>> +template class S, class U, U... J, class F> struct mp_from_sequence_impl, F, true> { using type = mp_list_c; }; } // namespace detail -template> using mp_from_sequence = typename detail::mp_from_sequence_impl::type; +template> using mp_from_sequence = typename detail::mp_from_sequence_impl::type; // mp_iota(_c) template using mp_iota_c = mp_from_sequence, mp_size_t>;