From 598a40644edc31e4ffce69ab096f6ddf10cfd4c7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 23 Mar 2021 00:29:57 +0200 Subject: [PATCH] Change mp_same to use mp_count instead of mp_all --- include/boost/mp11/function.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/mp11/function.hpp b/include/boost/mp11/function.hpp index 1aeccac..b0b4750 100644 --- a/include/boost/mp11/function.hpp +++ b/include/boost/mp11/function.hpp @@ -150,7 +150,7 @@ template<> struct mp_same_impl<> template struct mp_same_impl { - using type = mp_all...>; + using type = mp_bool< mp_count, T1>::value == sizeof...(T) >; }; } // namespace detail