Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-05-03 09:08:55


Author: hkaiser
Date: 2008-05-03 09:08:54 EDT (Sat, 03 May 2008)
New Revision: 45066
URL: http://svn.boost.org/trac/boost/changeset/45066

Log:
Spirit.Karma: Trying to workaround a gcc 4.2.1 bug.
Text files modified:
   trunk/libs/spirit/example/karma/actions.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/spirit/example/karma/actions.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/actions.cpp (original)
+++ trunk/libs/spirit/example/karma/actions.cpp 2008-05-03 09:08:54 EDT (Sat, 03 May 2008)
@@ -97,14 +97,14 @@
     }
 
     { // example using boost.lambda
- using boost::lambda::_1;
+ namespace lambda = boost::lambda;
 
         std::string generated;
         std::stringstream strm("42");
 
         bool result = karma::generate(
             make_function_output_iterator(make_string_appender(generated)),
- '{' << int_[strm >> _1] << '}');
+ '{' << int_[strm >> lambda::_1] << '}');
 
         if (result)
             std::cout << "Boost.Lambda: " << 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