Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-04-29 21:59:05


Author: hkaiser
Date: 2008-04-29 21:59:05 EDT (Tue, 29 Apr 2008)
New Revision: 44905
URL: http://svn.boost.org/trac/boost/changeset/44905

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

Modified: trunk/libs/spirit/test/karma/list.cpp
==============================================================================
--- trunk/libs/spirit/test/karma/list.cpp (original)
+++ trunk/libs/spirit/test/karma/list.cpp 2008-04-29 21:59:05 EDT (Tue, 29 Apr 2008)
@@ -35,7 +35,7 @@
     using namespace boost::spirit::ascii;
 
     using namespace boost::assign;
-
+
     std::vector<char> v;
     v += 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h';
     
@@ -53,12 +53,12 @@
     }
 
     { // actions
- using namespace boost::phoenix;
+ namespace phx = boost::phoenix;
         using boost::spirit::arg_names::_1;
 
- BOOST_TEST(test("a,b,c,d,e,f,g,h", (char_ % ',')[_1 = ref(v)]));
+ BOOST_TEST(test("a,b,c,d,e,f,g,h", (char_ % ',')[_1 = phx::ref(v)]));
         BOOST_TEST(test_delimited("a , b , c , d , e , f , g , h ",
- (char_ % ',')[_1 = ref(v)], space));
+ (char_ % ',')[_1 = phx::ref(v)], space));
     }
 
     return boost::report_errors();


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