mirror of
https://github.com/boostorg/mp11.git
synced 2025-12-05 16:19:20 +01:00
Make mp_at SFINAE-friendly
This commit is contained in:
@@ -325,8 +325,8 @@ template<class L, std::size_t I> struct mp_at_c_impl
|
||||
|
||||
} // namespace detail
|
||||
|
||||
template<class L, std::size_t I> using mp_at_c = typename detail::mp_at_c_impl<L, I>::type;
|
||||
template<class L, class I> using mp_at = typename detail::mp_at_c_impl<L, std::size_t{ I::value }>::type;
|
||||
template<class L, std::size_t I> using mp_at_c = typename mp_if_c<(I < mp_size<L>::value), detail::mp_at_c_impl<L, I>, void>::type;
|
||||
template<class L, class I> using mp_at = mp_at_c<L, std::size_t{ I::value }>;
|
||||
|
||||
// mp_take(_c)<L, N>
|
||||
namespace detail
|
||||
|
||||
Reference in New Issue
Block a user