Changeset 44907


Ignore:
Timestamp:
Apr 30, 2008, 2:02:27 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/plus.cpp

    r44360 r44907  
    7777
    7878    { // actions
    79         using namespace boost::phoenix;
     79        namespace phx = boost::phoenix;
    8080        using boost::spirit::arg_names::_1;
    8181
    8282        std::vector<char> v;
    83         BOOST_TEST(test("bbbb", (+char_)[ref(v) = _1]) && 4 == v.size() &&
     83        BOOST_TEST(test("bbbb", (+char_)[phx::ref(v) = _1]) && 4 == v.size() &&
    8484            v[0] == 'b' && v[1] == 'b' && v[2] == 'b' &&  v[3] == 'b');
    8585    }
    8686
    8787    { // more actions
    88         using namespace boost::phoenix;
     88        namespace phx = boost::phoenix;
    8989        using boost::spirit::arg_names::_1;
    9090
    9191        std::vector<int> v;
    92         BOOST_TEST(test("1 2 3", (+int_)[ref(v) = _1], space) && 3 == v.size() &&
     92        BOOST_TEST(test("1 2 3", (+int_)[phx::ref(v) = _1], space) && 3 == v.size() &&
    9393            v[0] == 1 && v[1] == 2 && v[2] == 3);
    9494    }
Note: See TracChangeset for help on using the changeset viewer.