1
0
forked from boostorg/mp11

Change mp_same to use mp_count instead of mp_all

This commit is contained in:
Peter Dimov
2021-03-23 00:29:57 +02:00
parent 76f68d09a0
commit 598a40644e

View File

@@ -150,7 +150,7 @@ template<> struct mp_same_impl<>
template<class T1, class... T> struct mp_same_impl<T1, T...>
{
using type = mp_all<std::is_same<T1, T>...>;
using type = mp_bool< mp_count<mp_list<T...>, T1>::value == sizeof...(T) >;
};
} // namespace detail