merge [84937] from trunk, fixes #8759

[SVN r85426]
This commit is contained in:
Eric Niebler
2013-08-22 19:45:30 +00:00
parent fc38122f0f
commit 66ddb762d3

View File

@ -42,6 +42,30 @@ namespace boost { namespace fusion
typedef typename result_of::as_map<Sequence const>::gen gen;
return gen::call(fusion::begin(seq));
}
namespace extension
{
template <typename T>
struct convert_impl;
template <>
struct convert_impl<map_tag>
{
template <typename Sequence>
struct apply
{
typedef typename
result_of::as_map<Sequence>::type
type;
static type call(Sequence& seq)
{
typedef result_of::as_map<Sequence> gen;
return gen::call(fusion::begin(seq), fusion::end(seq));
}
};
};
}
}}
#endif