rem: test->add( BOOST_TEST_CASE(&clear_test) );
add: using namespace boost::spirit;  BOOST_MESSAGE("clear_test");  const char* cp = "63"; const char* cp_first = cp; const char* cp_last = cp + strlen(cp); std::vector<int> c; c.push_back(1);  scanner<char const*> scan( cp_first, cp_last ); match<> hit;  hit = int_p[ clear_a(c)].parse(scan); BOOST_CHECK(hit); BOOST_CHECK_EQUAL(scan.first, scan.last); BOOST_CHECK( c.empty() ); scan.first = cp; c.push_back(1);  hit = str_p("63")[ clear_a(c)].parse(scan); BOOST_CHECK(hit); BOOST_CHECK_EQUAL(scan.first, scan.last); BOOST_CHECK( c.empty() );
context: void clear_action_test(boost::unit_test_framework::test_suite* test){    test->add( BOOST_TEST_CASE(&clear_test) );}