Changeset 44906


Ignore:
Timestamp:
Apr 30, 2008, 2:00:28 AM (11 years ago)
Author:
Hartmut Kaiser
Message:

Spirit.Qi: Fixing ref() ambiguity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/spirit/test/qi/kleene.cpp

    r44360 r44906  
    9292
    9393    { // actions
    94         using namespace boost::phoenix;
     94        namespace phx = boost::phoenix;
    9595        using boost::spirit::arg_names::_1;
    9696
    9797        std::vector<char> v;
    98         BOOST_TEST(test("bbbb", (*char_)[ref(v) = _1]) && 4 == v.size() &&
     98        BOOST_TEST(test("bbbb", (*char_)[phx::ref(v) = _1]) && 4 == v.size() &&
    9999            v[0] == 'b' && v[1] == 'b' && v[2] == 'b' &&  v[3] == 'b');
    100100    }
    101101
    102102    { // more actions
    103         using namespace boost::phoenix;
     103        namespace phx = boost::phoenix;
    104104        using boost::spirit::arg_names::_1;
    105105
    106106        std::vector<int> v;
    107         BOOST_TEST(test("123 456 789", (*int_)[ref(v) = _1], space) && 3 == v.size() &&
     107        BOOST_TEST(test("123 456 789", (*int_)[phx::ref(v) = _1], space) && 3 == v.size() &&
    108108            v[0] == 123 && v[1] == 456 && v[2] == 789);
    109109    }
Note: See TracChangeset for help on using the changeset viewer.