Add test/mp_set_difference_sf.cpp

This commit is contained in:
Peter Dimov
2019-01-07 21:27:06 +02:00
parent 21a95388f5
commit bc90e79d9f
3 changed files with 36 additions and 1 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
#include <boost/mp11/detail/mp_list.hpp>
#include <boost/mp11/detail/mp_append.hpp>
#include <boost/mp11/detail/mp_remove_if.hpp>
#include <boost/mp11/detail/mp_is_list.hpp>
#include <type_traits>
namespace boost
@@ -144,7 +145,7 @@ template<class... S> struct in_any_set
} // namespace detail
template<class L, class... S> using mp_set_difference = mp_remove_if_q<L, detail::in_any_set<S...>>;
template<class L, class... S> using mp_set_difference = mp_if< mp_all<mp_is_list<S>...>, mp_remove_if_q<L, detail::in_any_set<S...>> >;
} // namespace mp11
} // namespace boost