From 7ca1e0a92b172511d05a1962dc5f92da281c0902 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 7 Jan 2025 21:10:14 +0200 Subject: [PATCH] Add a specialization of mp_from_sequence_impl to handle the defaulted offset case. Fixes #103. --- include/boost/mp11/algorithm.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/mp11/algorithm.hpp b/include/boost/mp11/algorithm.hpp index 0f07447..057331a 100644 --- a/include/boost/mp11/algorithm.hpp +++ b/include/boost/mp11/algorithm.hpp @@ -355,6 +355,11 @@ template class S, class U, U... J, class F> struct mp_ using type = mp_list_c; }; +template class S, class U, U... J> struct mp_from_sequence_impl, mp_int<0>> +{ + using type = mp_list_c; +}; + } // namespace detail template> using mp_from_sequence = typename detail::mp_from_sequence_impl::type;