diff --git a/include/boost/mp11/map.hpp b/include/boost/mp11/map.hpp index dc49795..0836507 100644 --- a/include/boost/mp11/map.hpp +++ b/include/boost/mp11/map.hpp @@ -46,9 +46,7 @@ template class M, class... U, class T> struct mp_map_replace_ #else - template using _f = mp_if< std::is_same, K>, T, V >; - - using type = mp_if< mp_map_contains, K>, M<_f...>, M >; + using type = mp_if< mp_map_contains, K>, M, K>, T, U >...>, M >; #endif };