|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2008-04-29 22:02:27
Author: hkaiser
Date: 2008-04-29 22:02:27 EDT (Tue, 29 Apr 2008)
New Revision: 44907
URL: http://svn.boost.org/trac/boost/changeset/44907
Log:
Spirit.Qi: Fixing ref() ambiguity
Text files modified:
trunk/libs/spirit/test/qi/plus.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: trunk/libs/spirit/test/qi/plus.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/plus.cpp (original)
+++ trunk/libs/spirit/test/qi/plus.cpp 2008-04-29 22:02:27 EDT (Tue, 29 Apr 2008)
@@ -76,20 +76,20 @@
}
{ // actions
- using namespace boost::phoenix;
+ namespace phx = boost::phoenix;
using boost::spirit::arg_names::_1;
std::vector<char> v;
- BOOST_TEST(test("bbbb", (+char_)[ref(v) = _1]) && 4 == v.size() &&
+ BOOST_TEST(test("bbbb", (+char_)[phx::ref(v) = _1]) && 4 == v.size() &&
v[0] == 'b' && v[1] == 'b' && v[2] == 'b' && v[3] == 'b');
}
{ // more actions
- using namespace boost::phoenix;
+ namespace phx = boost::phoenix;
using boost::spirit::arg_names::_1;
std::vector<int> v;
- BOOST_TEST(test("1 2 3", (+int_)[ref(v) = _1], space) && 3 == v.size() &&
+ BOOST_TEST(test("1 2 3", (+int_)[phx::ref(v) = _1], space) && 3 == v.size() &&
v[0] == 1 && v[1] == 2 && v[2] == 3);
}
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