Ticket #3074: fusion.diff
File fusion.diff, 2.0 KB (added by , 13 years ago) |
---|
-
libs/fusion/test/sequence/adapt_assoc_struct.cpp
57 57 { 58 58 using namespace boost::fusion; 59 59 using namespace boost; 60 using namespace std;60 //using namespace std; 61 61 62 62 std::cout << tuple_open('['); 63 63 std::cout << tuple_close(']'); -
libs/fusion/test/sequence/cons.cpp
25 25 main() 26 26 { 27 27 using namespace boost::fusion; 28 namespace bf = boost::fusion; 28 29 using boost::is_same; 29 30 30 31 std::cout << tuple_open('['); … … 39 40 make_cons(1, make_cons(hello)); 40 41 41 42 BOOST_TEST((*begin(ns) == 1)); 42 BOOST_TEST((* next(begin(ns)) == hello));43 BOOST_TEST((*bf::next(begin(ns)) == hello)); 43 44 44 45 *begin(ns) += 1; 45 * next(begin(ns)) += ' ';46 *bf::next(begin(ns)) += ' '; 46 47 47 48 BOOST_TEST((*begin(ns) == 2)); 48 BOOST_TEST((* next(begin(ns)) == hello + ' '));49 BOOST_TEST((*bf::next(begin(ns)) == hello + ' ')); 49 50 50 51 for_each(ns, boost::lambda::_1 += ' '); 51 52 52 53 BOOST_TEST((*begin(ns) == 2 + ' ')); 53 BOOST_TEST((* next(begin(ns)) == hello + ' ' + ' '));54 BOOST_TEST((*bf::next(begin(ns)) == hello + ' ' + ' ')); 54 55 } 55 56 56 57 { -
libs/fusion/test/sequence/vector_n.cpp
30 30 { 31 31 using namespace boost::fusion; 32 32 using namespace boost; 33 using namespace std; 33 using std::cout; 34 using std::endl; 34 35 35 36 { 36 37 vector0 vec;