Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58298 - trunk/libs/spirit/test/qi
From: hartmut.kaiser_at_[hidden]
Date: 2009-12-11 14:50:36


Author: hkaiser
Date: 2009-12-11 14:50:35 EST (Fri, 11 Dec 2009)
New Revision: 58298
URL: http://svn.boost.org/trac/boost/changeset/58298

Log:
Spirit: added bool return value to push_back customization point, adjusted tests
Text files modified:
   trunk/libs/spirit/test/qi/kleene.cpp | 3 ++-
   trunk/libs/spirit/test/qi/plus.cpp | 3 ++-
   trunk/libs/spirit/test/qi/repeat.cpp | 3 ++-
   3 files changed, 6 insertions(+), 3 deletions(-)

Modified: trunk/libs/spirit/test/qi/kleene.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/kleene.cpp (original)
+++ trunk/libs/spirit/test/qi/kleene.cpp 2009-12-11 14:50:35 EST (Fri, 11 Dec 2009)
@@ -39,9 +39,10 @@
     template <>
     struct push_back_container<x_attr, char>
     {
- static void call(x_attr& /*c*/, char /*val*/)
+ static bool call(x_attr& /*c*/, char /*val*/)
         {
             // push back value type into container
+ return true;
         }
     };
 }}}

Modified: trunk/libs/spirit/test/qi/plus.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/plus.cpp (original)
+++ trunk/libs/spirit/test/qi/plus.cpp 2009-12-11 14:50:35 EST (Fri, 11 Dec 2009)
@@ -39,9 +39,10 @@
     template <>
     struct push_back_container<x_attr, char>
     {
- static void call(x_attr& /*c*/, char /*val*/)
+ static bool call(x_attr& /*c*/, char /*val*/)
         {
             // push back value type into container
+ return true;
         }
     };
 }}}

Modified: trunk/libs/spirit/test/qi/repeat.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/repeat.cpp (original)
+++ trunk/libs/spirit/test/qi/repeat.cpp 2009-12-11 14:50:35 EST (Fri, 11 Dec 2009)
@@ -39,9 +39,10 @@
     template <>
     struct push_back_container<x_attr, char>
     {
- static void call(x_attr& /*c*/, char /*val*/)
+ static bool call(x_attr& /*c*/, char /*val*/)
         {
             // push back value type into container
+ return true;
         }
     };
 }}}


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