Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-04-27 14:11:17


Author: hkaiser
Date: 2008-04-27 14:11:17 EDT (Sun, 27 Apr 2008)
New Revision: 44821
URL: http://svn.boost.org/trac/boost/changeset/44821

Log:
Spirit.Qi: Made it clear for gcc 4.3 which ref() to use.
Text files modified:
   trunk/libs/spirit/test/qi/difference.cpp | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: trunk/libs/spirit/test/qi/difference.cpp
==============================================================================
--- trunk/libs/spirit/test/qi/difference.cpp (original)
+++ trunk/libs/spirit/test/qi/difference.cpp 2008-04-27 14:11:17 EDT (Sun, 27 Apr 2008)
@@ -55,19 +55,20 @@
 
     {
         using boost::spirit::arg_names::_1;
- using boost::phoenix::ref;
+ namespace phx = boost::phoenix;
+
         std::string s;
 
         BOOST_TEST(test(
             "/*abcdefghijk*/"
- , "/*" >> *(char_ - "*/")[ref(s) += _1] >> "*/"
+ , "/*" >> *(char_ - "*/")[phx::ref(s) += _1] >> "*/"
         ));
         BOOST_TEST(s == "abcdefghijk");
         s.clear();
 
         BOOST_TEST(test(
             " /*abcdefghijk*/ "
- , "/*" >> *(char_ - "*/")[ref(s) += _1] >> "*/"
+ , "/*" >> *(char_ - "*/")[phx::ref(s) += _1] >> "*/"
           , space
         ));
         BOOST_TEST(s == "abcdefghijk");


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