rem: test->add( BOOST_TEST_CASE(&swap_test) );
add: using namespace boost::spirit;  const char* cp = "63"; const char* cp_first = cp; const char* cp_last = cp + strlen(cp); std::vector<int> v1,v2;  v1.push_back(0); v1.push_back(1);  v2.push_back(2); v2.push_back(3);  scanner<char const*> scan( cp_first, cp_last ); match<> hit;  hit = int_p[ swap_a(v1,v2)].parse(scan); BOOST_CHECK(hit); BOOST_CHECK_EQUAL(scan.first, scan.last); BOOST_CHECK(v1.size()==2); BOOST_CHECK(v2.size()==2); BOOST_CHECK_EQUAL(v2[0],0); BOOST_CHECK_EQUAL(v2[1],1); BOOST_CHECK_EQUAL(v1[0],2); BOOST_CHECK_EQUAL(v1[1],3);
context: void swap_action_test(boost::unit_test_framework::test_suite* test){    test->add( BOOST_TEST_CASE(&swap_test) );}