|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2008-05-03 09:08:35
Author: hkaiser
Date: 2008-05-03 09:08:35 EDT (Sat, 03 May 2008)
New Revision: 45065
URL: http://svn.boost.org/trac/boost/changeset/45065
Log:
Spirit.Qi: Working around issue with gcc 4.2.1
Text files modified:
trunk/libs/spirit/example/qi/actions.cpp | 4 ++--
trunk/libs/spirit/test/qi/actions.cpp | 5 ++---
2 files changed, 4 insertions(+), 5 deletions(-)
Modified: trunk/libs/spirit/example/qi/actions.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/actions.cpp (original)
+++ trunk/libs/spirit/example/qi/actions.cpp 2008-05-03 09:08:35 EDT (Sat, 03 May 2008)
@@ -55,9 +55,9 @@
{ // example using boost.lambda
- using boost::lambda::_1;
+ namespace lambda = boost::lambda;
char const *s1 = "{45}", *e1 = s1 + std::strlen(s1);
- qi::parse(s1, e1, '{' >> int_[std::cout << _1 << '\n'] >> '}');
+ qi::parse(s1, e1, '{' >> int_[std::cout << lambda::_1 << '\n'] >> '}');
}
return 0;
Modified: trunk/libs/spirit/test/qi/actions.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/actions.cpp (original)
+++ trunk/libs/spirit/test/qi/actions.cpp 2008-05-03 09:08:35 EDT (Sat, 03 May 2008)
@@ -64,10 +64,9 @@
}
{
- using boost::lambda::_1;
- using boost::lambda::var;
+ namespace lambda = boost::lambda;
char const *s1 = "{42}", *e1 = s1 + std::strlen(s1);
- qi::parse(s1, e1, '{' >> int_[var(x) += _1] >> '}');
+ qi::parse(s1, e1, '{' >> int_[lambda::var(x) += lambda::_1] >> '}');
}
BOOST_TEST(x == (42*6));
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