Ticket #8579: spirit.qi.handles_container.patch

File spirit.qi.handles_container.patch, 1.2 KB (added by K-ballo <kaballo86@…>, 9 years ago)

Tentative fix patch

  • boost/spirit/home/qi/auxiliary/attr_cast.hpp

     
    142142
    143143}}}
    144144
     145namespace boost { namespace spirit { namespace traits
     146{
     147    ///////////////////////////////////////////////////////////////////////////
     148    template <typename Exposed, typename Transformed, typename Subject, typename Attribute
     149        , typename Context, typename Iterator>
     150    struct handles_container<qi::attr_cast_parser<Exposed, Transformed, Subject>, Attribute
     151        , Context, Iterator>
     152      : traits::is_container<Exposed> {};
     153}}}
     154
    145155#endif
  • boost/spirit/home/qi/directive/as.hpp

     
    172172        , typename Context, typename Iterator>
    173173    struct handles_container<qi::as_directive<Subject, T>, Attribute
    174174        , Context, Iterator>
    175       : mpl::false_ {};
     175      : traits::is_container<T> {};
    176176}}}
    177177
    178178#endif