From cc3d54a857e1752d6b0de1edd45de729f93ec3c7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 16 Nov 2016 19:55:35 +0200 Subject: [PATCH] Do not use function.hpp in algorithm.hpp. --- include/boost/mp11/algorithm.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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