Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63693 - trunk/libs/spirit/example/karma
From: hartmut.kaiser_at_[hidden]
Date: 2010-07-06 09:52:01


Author: hkaiser
Date: 2010-07-06 09:52:00 EDT (Tue, 06 Jul 2010)
New Revision: 63693
URL: http://svn.boost.org/trac/boost/changeset/63693

Log:
Spirit: more example fixing...
Text files modified:
   trunk/libs/spirit/example/karma/complex_number_easier.cpp | 2 +-
   trunk/libs/spirit/example/karma/num_list3.cpp | 4 +++-
   trunk/libs/spirit/example/karma/simple_columns_directive.hpp | 2 +-
   3 files changed, 5 insertions(+), 3 deletions(-)

Modified: trunk/libs/spirit/example/karma/complex_number_easier.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/complex_number_easier.cpp (original)
+++ trunk/libs/spirit/example/karma/complex_number_easier.cpp 2010-07-06 09:52:00 EDT (Tue, 06 Jul 2010)
@@ -70,7 +70,7 @@
             // Begin grammar
             (
                !double_(0.0) << '(' << double_ << ", " << double_ << ')'
- | omit[double_] << double_ << omit[double_]
+ | omit[double_] << double_
             ),
             // End grammar
 

Modified: trunk/libs/spirit/example/karma/num_list3.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/num_list3.cpp (original)
+++ trunk/libs/spirit/example/karma/num_list3.cpp 2010-07-06 09:52:00 EDT (Tue, 06 Jul 2010)
@@ -112,8 +112,10 @@
                 double real(*it);
                 if (++it != end)
                     vc.push_back(client::complex(real, *it));
- else
+ else {
                     vc.push_back(client::complex(real));
+ break;
+ }
             }
 
             std::cout << "-------------------------\n";

Modified: trunk/libs/spirit/example/karma/simple_columns_directive.hpp
==============================================================================
--- trunk/libs/spirit/example/karma/simple_columns_directive.hpp (original)
+++ trunk/libs/spirit/example/karma/simple_columns_directive.hpp 2010-07-06 09:52:00 EDT (Tue, 06 Jul 2010)
@@ -117,7 +117,7 @@
 namespace boost { namespace spirit { namespace karma
 {
     // This is the factory function object invoked in order to create
- // an instance of our iter_pos_parser.
+ // an instance of our simple_columns_generator.
     template <typename Subject, typename Modifiers>
     struct make_directive<custom_generator::tag::columns, Subject, Modifiers>
     {


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