From 5a4fb7f83202d348b12862627f251015b2e621be Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 14 Mar 2017 22:40:47 +0200 Subject: [PATCH] Fix function application in mp_map_update --- include/boost/mp11/map.hpp | 8 ++------ test/mp_map_update.cpp | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/boost/mp11/map.hpp b/include/boost/mp11/map.hpp index 9350b70..b12f48c 100644 --- a/include/boost/mp11/map.hpp +++ b/include/boost/mp11/map.hpp @@ -53,12 +53,8 @@ template class F> struct mp_map_update_impl { template using _f = std::is_same, mp_first>; - // _f2> -> F - // _f2> -> F - template using _f2 = mp_rename>, F>; - - // _f3> -> L> - template using _f3 = mp_assign, _f2>>; + // _f3> -> L> + template using _f3 = mp_assign, mp_rename>>; using type = mp_if< mp_map_contains>, mp_transform_if<_f, _f3, M>, mp_push_back >; }; diff --git a/test/mp_map_update.cpp b/test/mp_map_update.cpp index d957806..0069072 100644 --- a/test/mp_map_update.cpp +++ b/test/mp_map_update.cpp @@ -17,7 +17,7 @@ using boost::mp_int; -template using inc = mp_int; +template using inc = mp_int; int main() {