1
0
forked from boostorg/mp11

Add a specialization of mp_from_sequence_impl to handle the defaulted offset case. Fixes #103.

This commit is contained in:
Peter Dimov
2025-01-07 21:10:14 +02:00
parent e2277a5b2e
commit 7ca1e0a92b

View File

@@ -355,6 +355,11 @@ template<template<class T, T... I> class S, class U, U... J, class F> struct mp_
using type = mp_list_c<U, (F::value + J)...>;
};
template<template<class T, T... I> class S, class U, U... J> struct mp_from_sequence_impl<S<U, J...>, mp_int<0>>
{
using type = mp_list_c<U, J...>;
};
} // namespace detail
template<class S, class F = mp_int<0>> using mp_from_sequence = typename detail::mp_from_sequence_impl<S, F>::type;