specialization of convert_impl for map_tag, refs #8759

[SVN r84937]
This commit is contained in:
Eric Niebler
2013-07-02 02:10:04 +00:00
parent 7922147716
commit 3b24ed44f8

View File

@ -80,6 +80,30 @@ namespace boost { namespace fusion
typedef result_of::as_map<Sequence const> gen;
return gen::call(fusion::begin(seq), fusion::end(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