1
0
forked from boostorg/mp11

Clang -x cuda: >>> mixmatch

This commit is contained in:
Axel Huebl
2018-04-05 18:55:25 +02:00
parent 88485f900a
commit c24fe1750c
5 changed files with 9 additions and 9 deletions

View File

@@ -58,7 +58,7 @@ template<class M, class T, template<class...> class F> struct mp_map_update_impl
template<class U> using _f = std::is_same<mp_first<T>, mp_first<U>>;
// _f3<L<X, Y...>> -> L<X, F<X, Y...>>
template<class L> using _f3 = mp_assign<L, mp_list<mp_first<L>, mp_rename<L, F>>>;
template<class L> using _f3 = mp_assign<L, mp_list<mp_first<L>, mp_rename<L, F> > >;
using type = mp_if< mp_map_contains<M, mp_first<T>>, mp_transform_if<_f, _f3, M>, mp_push_back<M, T> >;
};