Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52875 - trunk/libs/spirit/example/karma
From: hartmut.kaiser_at_[hidden]
Date: 2009-05-10 12:28:49


Author: hkaiser
Date: 2009-05-10 12:28:48 EDT (Sun, 10 May 2009)
New Revision: 52875
URL: http://svn.boost.org/trac/boost/changeset/52875

Log:
Spirit: Applied patch fixing strange compilation errors of example karma/actions.cpp on some systems
Text files modified:
   trunk/libs/spirit/example/karma/actions.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/libs/spirit/example/karma/actions.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/actions.cpp (original)
+++ trunk/libs/spirit/example/karma/actions.cpp 2009-05-10 12:28:48 EDT (Sun, 10 May 2009)
@@ -22,7 +22,7 @@
 
 using boost::spirit::unused_type;
 
-void read(int& i)
+void read_function(int& i)
 {
     i = 42;
 }
@@ -44,7 +44,7 @@
         std::string generated;
         std::back_insert_iterator<std::string> outit(generated);
         bool result = karma::generate(outit,
- '{' << int_[&read] << '}');
+ '{' << int_[&read_function] << '}');
 
         if (result)
             std::cout << "Simple function: " << generated << std::endl;
@@ -69,7 +69,7 @@
         std::string generated;
         std::back_insert_iterator<std::string> outit(generated);
         bool result = generate(outit,
- '{' << int_[boost::bind(read, _1)] << '}');
+ '{' << int_[boost::bind(read_function, _1)] << '}');
 
         if (result)
             std::cout << "Boost.Bind: " << generated << std::endl;


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