Boost logo

Boost-Commit :

From: joel_at_[hidden]
Date: 2008-04-18 06:32:40


Author: djowel
Date: 2008-04-18 06:32:40 EDT (Fri, 18 Apr 2008)
New Revision: 44538
URL: http://svn.boost.org/trac/boost/changeset/44538

Log:
added actions test + bug fixes
Text files modified:
   trunk/boost/spirit/home/qi/char/detail/basic_chset.hpp | 4 ++--
   trunk/boost/spirit/home/support/detail/action_dispatch.hpp | 13 +++++++------
   2 files changed, 9 insertions(+), 8 deletions(-)

Modified: trunk/boost/spirit/home/qi/char/detail/basic_chset.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/char/detail/basic_chset.hpp (original)
+++ trunk/boost/spirit/home/qi/char/detail/basic_chset.hpp 2008-04-18 06:32:40 EDT (Fri, 18 Apr 2008)
@@ -48,13 +48,13 @@
         void
         clear(Char from, Char to)
         {
- rr.set(range<Char>(c, c));
+ rr.clear(range<Char>(from, to));
         }
 
         void
         clear(Char c)
         {
- rr.clear(range<Char>(from, to));
+ rr.clear(range<Char>(c, c));
         }
 
         void

Modified: trunk/boost/spirit/home/support/detail/action_dispatch.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/action_dispatch.hpp (original)
+++ trunk/boost/spirit/home/support/detail/action_dispatch.hpp 2008-04-18 06:32:40 EDT (Fri, 18 Apr 2008)
@@ -33,7 +33,7 @@
 
     template <typename RT, typename A0, typename A1, typename A2
       , typename Attribute, typename Context>
- bool action_dispatch(RT(*f)(A0&, A1&, A2&)
+ bool action_dispatch(RT(*f)(A0, A1, A2)
       , Attribute& attr, Context& context)
     {
         bool pass = true;
@@ -43,7 +43,7 @@
 
     template <typename RT, typename A0, typename A1, typename A2
       , typename Attribute, typename Context>
- bool action_dispatch(RT(&f)(A0&, A1&, A2&)
+ bool action_dispatch(RT(&f)(A0, A1, A2)
       , Attribute& attr, Context& context)
     {
         bool pass = true;
@@ -53,7 +53,7 @@
 
     template <typename RT, typename A0, typename A1
       , typename Attribute, typename Context>
- bool action_dispatch(RT(*f)(A0&, A1&)
+ bool action_dispatch(RT(*f)(A0, A1)
       , Attribute& attr, Context& context)
     {
         f(attr, context);
@@ -62,7 +62,7 @@
 
     template <typename RT, typename A0, typename A1
       , typename Attribute, typename Context>
- bool action_dispatch(RT(&f)(A0&, A1&)
+ bool action_dispatch(RT(&f)(A0, A1)
       , Attribute& attr, Context& context)
     {
         f(attr, context);
@@ -71,7 +71,7 @@
 
     template <typename RT, typename A0
       , typename Attribute, typename Context>
- bool action_dispatch(RT(*f)(A0&)
+ bool action_dispatch(RT(*f)(A0)
       , Attribute& attr, Context& context)
     {
         f(attr);
@@ -80,12 +80,13 @@
 
     template <typename RT, typename A0
       , typename Attribute, typename Context>
- bool action_dispatch(RT(&f)(A0&)
+ bool action_dispatch(RT(&f)(A0)
       , Attribute& attr, Context& context)
     {
         f(attr);
         return true;
     }
+
 }}}
 
 #endif


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