mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-30 04:27:30 +02:00
@ -42,6 +42,30 @@ namespace boost { namespace fusion
|
|||||||
typedef typename result_of::as_map<Sequence const>::gen gen;
|
typedef typename result_of::as_map<Sequence const>::gen gen;
|
||||||
return gen::call(fusion::begin(seq));
|
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
|
#endif
|
||||||
|
Reference in New Issue
Block a user