From f3b3b533aaf4701f23e24aaa0b7bd86f3393aecf Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 20 Mar 2020 02:26:01 +0200 Subject: [PATCH] Remove local mp_power_set implementation, as it's now in mp11 --- test/variant_special.cpp | 22 ---------------------- test/variant_trivial.cpp | 22 ---------------------- 2 files changed, 44 deletions(-) diff --git a/test/variant_special.cpp b/test/variant_special.cpp index cd6eab8..956d927 100644 --- a/test/variant_special.cpp +++ b/test/variant_special.cpp @@ -14,28 +14,6 @@ #include using namespace boost::mp11; -// mp_power_set - -template struct mp_power_set_impl; - -template using mp_power_set = typename mp_power_set_impl::type; - -template class L> struct mp_power_set_impl< L<> > -{ - using type = L< L<> >; -}; - -template class L, class T1, class... T> struct mp_power_set_impl< L > -{ - using S1 = mp_power_set< L >; - - template using _f = mp_push_front; - - using S2 = mp_transform<_f, S1>; - - using type = mp_append< S1, S2 >; -}; - // using namespace boost::variant2; diff --git a/test/variant_trivial.cpp b/test/variant_trivial.cpp index 361dc0d..c813784 100644 --- a/test/variant_trivial.cpp +++ b/test/variant_trivial.cpp @@ -14,28 +14,6 @@ #include using namespace boost::mp11; -// mp_power_set - -template struct mp_power_set_impl; - -template using mp_power_set = typename mp_power_set_impl::type; - -template class L> struct mp_power_set_impl< L<> > -{ - using type = L< L<> >; -}; - -template class L, class T1, class... T> struct mp_power_set_impl< L > -{ - using S1 = mp_power_set< L >; - - template using _f = mp_push_front; - - using S2 = mp_transform<_f, S1>; - - using type = mp_append< S1, S2 >; -}; - // struct D