patches from tongari: allow custom Associative Sequence which doesn't have fusion::pair

as elements.

[SVN r83455]
This commit is contained in:
Joel de Guzman
2013-03-16 07:28:23 +00:00
parent d354c5183b
commit b36426c8e3
10 changed files with 823 additions and 774 deletions

View File

@@ -20,7 +20,14 @@ namespace boost { namespace fusion
template <typename Sequence>
struct as_map
{
typedef typename detail::as_map<result_of::size<Sequence>::value> gen;
typedef typename
detail::as_map<
result_of::size<Sequence>::value
, is_base_of<
associative_tag
, typename traits::category_of<Sequence>::type>::value
>
gen;
typedef typename gen::
template apply<typename result_of::begin<Sequence>::type>::type
type;