Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-04-29 22:00:28


Author: hkaiser
Date: 2008-04-29 22:00:28 EDT (Tue, 29 Apr 2008)
New Revision: 44906
URL: http://svn.boost.org/trac/boost/changeset/44906

Log:
Spirit.Qi: Fixing ref() ambiguity
Text files modified:
   trunk/libs/spirit/test/qi/kleene.cpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/libs/spirit/test/qi/kleene.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/kleene.cpp (original)
+++ trunk/libs/spirit/test/qi/kleene.cpp 2008-04-29 22:00:28 EDT (Tue, 29 Apr 2008)
@@ -91,20 +91,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("123 456 789", (*int_)[ref(v) = _1], space) && 3 == v.size() &&
+ BOOST_TEST(test("123 456 789", (*int_)[phx::ref(v) = _1], space) && 3 == v.size() &&
             v[0] == 123 && v[1] == 456 && v[2] == 789);
     }
 


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