diff --git a/include/boost/mp11/algorithm.hpp b/include/boost/mp11/algorithm.hpp index 76f727e..3a1e6af 100644 --- a/include/boost/mp11/algorithm.hpp +++ b/include/boost/mp11/algorithm.hpp @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include #include @@ -796,13 +796,13 @@ template class L, class... T> struct mp_unique_impl> template using mp_unique = typename detail::mp_unique_impl::type; // mp_all_of -template class P> using mp_all_of = mp_equal_to< mp_count_if, mp_size >; +template class P> using mp_all_of = mp_bool< mp_count_if::value == mp_size::value >; // mp_none_of -template class P> using mp_none_of = mp_not< mp_count_if >; +template class P> using mp_none_of = mp_bool< mp_count_if::value == 0 >; // mp_any_of -template class P> using mp_any_of = mp_to_bool< mp_count_if >; +template class P> using mp_any_of = mp_bool< mp_count_if::value != 0 >; } // namespace boost