Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53568 - trunk/libs/proto/test
From: eric_at_[hidden]
Date: 2009-06-02 03:28:18


Author: eric_niebler
Date: 2009-06-02 03:28:17 EDT (Tue, 02 Jun 2009)
New Revision: 53568
URL: http://svn.boost.org/trac/boost/changeset/53568

Log:
fix broken test
Text files modified:
   trunk/libs/proto/test/toy_spirit.cpp | 10 ++++------
   1 files changed, 4 insertions(+), 6 deletions(-)

Modified: trunk/libs/proto/test/toy_spirit.cpp
==============================================================================
--- trunk/libs/proto/test/toy_spirit.cpp (original)
+++ trunk/libs/proto/test/toy_spirit.cpp 2009-06-02 03:28:17 EDT (Tue, 02 Jun 2009)
@@ -521,11 +521,10 @@
     struct no_case_directive
     {
         template<typename Expr>
- typename SpiritGrammar::result<void(Expr, mpl::void_, mpl::void_)>::type const
+ typename boost::result_of<SpiritGrammar(Expr const &)>::type const
         operator [](Expr const &expr) const
         {
- mpl::void_ null;
- return SpiritGrammar()(expr, null, null);
+ return SpiritGrammar()(expr);
         }
     };
 
@@ -540,11 +539,10 @@
         {}
 
         template<typename Expr>
- typename boost::result_of<SkipperGrammar(Expr const &, Skipper const &, mpl::void_ &)>::type const
+ typename boost::result_of<SkipperGrammar(Expr const &, Skipper const &)>::type const
         operator [](Expr const &expr) const
         {
- mpl::void_ null;
- return SkipperGrammar()(expr, this->skip_, null);
+ return SkipperGrammar()(expr, this->skip_);
         }
     private:
         Skipper skip_;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk