Index: boost/proto/transform/fold.hpp =================================================================== --- boost/proto/transform/fold.hpp (revision 57015) +++ boost/proto/transform/fold.hpp (working copy) @@ -43,8 +43,12 @@ template struct result; - template + template +#if BOOST_VERSION < 103500 struct result +#else + struct result +#endif { typedef typename when<_, Transform>::template impl::result_type @@ -58,9 +62,13 @@ {}; #endif - template + template typename when<_, Transform>::template impl::result_type +#if BOOST_VERSION < 103500 operator ()(Expr &e, State const &s) const +#else + operator ()(State const &s, Expr &e) const +#endif { return typename when<_, Transform>::template impl()(e, s, this->v_); } Index: libs/proto/test/toy_spirit2.cpp =================================================================== --- libs/proto/test/toy_spirit2.cpp (revision 57015) +++ libs/proto/test/toy_spirit2.cpp (working copy) @@ -302,7 +302,11 @@ #endif template +#if BOOST_VERSION < 103500 bool operator ()(T const &t, bool success) const +#else + bool operator ()(bool success, T const &t) const +#endif { return success && this->parse(t); }