From 66ddb762d3a16c92e8eaa593179271cf55db72f9 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Thu, 22 Aug 2013 19:45:30 +0000 Subject: [PATCH] merge [84937] from trunk, fixes #8759 [SVN r85426] --- .../boost/fusion/container/map/convert.hpp | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/include/boost/fusion/container/map/convert.hpp b/include/boost/fusion/container/map/convert.hpp index 5bb6fc9d..bc3fa053 100644 --- a/include/boost/fusion/container/map/convert.hpp +++ b/include/boost/fusion/container/map/convert.hpp @@ -42,6 +42,30 @@ namespace boost { namespace fusion typedef typename result_of::as_map::gen gen; return gen::call(fusion::begin(seq)); } + + namespace extension + { + template + struct convert_impl; + + template <> + struct convert_impl + { + template + struct apply + { + typedef typename + result_of::as_map::type + type; + + static type call(Sequence& seq) + { + typedef result_of::as_map gen; + return gen::call(fusion::begin(seq), fusion::end(seq)); + } + }; + }; + } }} #endif