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