Ticket #8759: map_convert.patch

File map_convert.patch, 979 bytes (added by Eric Niebler, 9 years ago)
  • container/map/convert.hpp

     
    8080        typedef result_of::as_map<Sequence const> gen;
    8181        return gen::call(fusion::begin(seq), fusion::end(seq));
    8282    }
     83
     84    namespace extension
     85    {
     86        template <typename T>
     87        struct convert_impl;
     88
     89        template <>
     90        struct convert_impl<map_tag>
     91        {
     92            template <typename Sequence>
     93            struct apply
     94            {
     95                typedef typename
     96                    result_of::as_map<Sequence>::type
     97                type;
     98
     99                static type call(Sequence& seq)
     100                {
     101                    typedef result_of::as_map<Sequence> gen;
     102                    return gen::call(fusion::begin(seq), fusion::end(seq));
     103                }
     104            };
     105        };
     106    }
    83107}}
    84108
    85109#endif