|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74413 - trunk/libs/spirit/phoenix/test/scope
From: joel_at_[hidden]
Date: 2011-09-16 02:48:27
Author: djowel
Date: 2011-09-16 02:48:25 EDT (Fri, 16 Sep 2011)
New Revision: 74413
URL: http://svn.boost.org/trac/boost/changeset/74413
Log:
Added explicit qualification for ref to avoid conflict with std::ref
Text files modified:
trunk/libs/spirit/phoenix/test/scope/lambda_tests.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/libs/spirit/phoenix/test/scope/lambda_tests.cpp
==============================================================================
--- trunk/libs/spirit/phoenix/test/scope/lambda_tests.cpp (original)
+++ trunk/libs/spirit/phoenix/test/scope/lambda_tests.cpp 2011-09-16 02:48:25 EDT (Fri, 16 Sep 2011)
@@ -147,6 +147,7 @@
{
using boost::phoenix::for_each;
using boost::phoenix::push_back;
+ namespace phx = boost::phoenix;
int x = 10;
std::vector<std::vector<int> > v(10);
@@ -154,7 +155,7 @@
for_each(_1, lambda(_a = _2)[push_back(_1, _a)])(v, x);
int y = 0;
- for_each(arg1, lambda[ref(y) += _1[0]])(v);
+ for_each(arg1, lambda[phx::ref(y) += _1[0]])(v);
BOOST_TEST(y == 100);
}
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