Ticket #2355: proto.diff
File proto.diff, 1.8 KB (added by , 13 years ago) |
---|
-
boost/proto/transform/fold.hpp
43 43 template<typename Sig> 44 44 struct result; 45 45 46 template<typename This, typename Expr, typename State> 46 template<typename This, typename State, typename Expr> 47 #if BOOST_VERSION < 103500 47 48 struct result<This(Expr, State)> 49 #else 50 struct result<This(State, Expr)> 51 #endif 48 52 { 49 53 typedef 50 54 typename when<_, Transform>::template impl<Expr, State, Data>::result_type … … 58 62 {}; 59 63 #endif 60 64 61 template<typename Expr, typename State>65 template<typename State, typename Expr> 62 66 typename when<_, Transform>::template impl<Expr &, State const &, Data>::result_type 67 #if BOOST_VERSION < 103500 63 68 operator ()(Expr &e, State const &s) const 69 #else 70 operator ()(State const &s, Expr &e) const 71 #endif 64 72 { 65 73 return typename when<_, Transform>::template impl<Expr &, State const &, Data>()(e, s, this->v_); 66 74 } -
libs/proto/test/toy_spirit2.cpp
302 302 #endif 303 303 304 304 template<typename T> 305 #if BOOST_VERSION < 103500 305 306 bool operator ()(T const &t, bool success) const 307 #else 308 bool operator ()(bool success, T const &t) const 309 #endif 306 310 { 307 311 return success && this->parse(t); 308 312 }