Ticket #3553: proto.diff

File proto.diff, 1.8 KB (added by Christopher Schmidt, 13 years ago)
  • boost/proto/transform/fold.hpp

     
    4343                template<typename Sig>
    4444                struct result;
    4545
    46                 template<typename This, typename Expr, typename State>
     46                template<typename This, typename State, typename Expr>
     47#if BOOST_VERSION < 103500
    4748                struct result<This(Expr, State)>
     49#else
     50                struct result<This(State, Expr)>
     51#endif
    4852                {
    4953                    typedef
    5054                        typename when<_, Transform>::template impl<Expr, State, Data>::result_type
     
    5862                {};
    5963                #endif
    6064
    61                 template<typename Expr, typename State>
     65                template<typename State, typename Expr>
    6266                typename when<_, Transform>::template impl<Expr &, State const &, Data>::result_type
     67#if BOOST_VERSION < 103500
    6368                operator ()(Expr &e, State const &s) const
     69#else
     70                operator ()(State const &s, Expr &e) const
     71#endif
    6472                {
    6573                    return typename when<_, Transform>::template impl<Expr &, State const &, Data>()(e, s, this->v_);
    6674                }
  • libs/proto/test/toy_spirit2.cpp

     
    302302        #endif
    303303
    304304        template<typename T>
     305#if BOOST_VERSION < 103500
    305306        bool operator ()(T const &t, bool success) const
     307#else
     308        bool operator ()(bool success, T const &t) const
     309#endif
    306310        {
    307311            return success && this->parse(t);
    308312        }