Ticket #3074: fusion_vc10.patch
File fusion_vc10.patch, 6.8 KB (added by , 13 years ago) |
---|
-
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/iterator_range.cpp
28 28 main() 29 29 { 30 30 using namespace boost::fusion; 31 namespace bf = boost::fusion; 31 32 32 33 std::cout << tuple_open('['); 33 34 std::cout << tuple_close(']'); … … 104 105 BOOST_MPL_ASSERT((boost::is_same<result_of::value_of_data<result_of::next<result_of::begin<range_type>::type>::type>::type, char>)); 105 106 106 107 std::cout << deref_data(begin(r)) << std::endl; 107 std::cout << deref_data( next(begin(r))) << std::endl;108 std::cout << deref_data(bf::next(begin(r))) << std::endl; 108 109 BOOST_TEST((deref_data(begin(r)) == "foo")); 109 BOOST_TEST((deref_data( next(begin(r))) == 'x'));110 BOOST_TEST((deref_data(bf::next(begin(r))) == 'x')); 110 111 } 111 112 112 113 return boost::report_errors(); -
libs/fusion/test/sequence/joint_view.cpp
176 176 177 177 std::cout << deref_data(begin(j)) << std::endl; 178 178 std::cout << deref_data(boost::fusion::next(begin(j))) << std::endl; 179 std::cout << deref_data( next(boost::fusion::next(begin(j)))) << std::endl;179 std::cout << deref_data(boost::fusion::next(boost::fusion::next(begin(j)))) << std::endl; 180 180 BOOST_TEST((deref_data(begin(j)) == 0)); 181 181 BOOST_TEST((deref_data(boost::fusion::next(begin(j))) == "foo")); 182 BOOST_TEST((deref_data( next(boost::fusion::next(begin(j)))) == 1.3f));182 BOOST_TEST((deref_data(boost::fusion::next(boost::fusion::next(begin(j)))) == 1.3f)); 183 183 } 184 184 185 185 return boost::report_errors(); -
libs/fusion/test/sequence/map.cpp
27 27 main() 28 28 { 29 29 using namespace boost::fusion; 30 namespace bf = boost::fusion; 30 31 using namespace boost; 31 32 using namespace std; 32 33 using boost::fusion::pair; … … 66 67 BOOST_STATIC_ASSERT((!result_of::has_key<map_type, std::string>::value)); 67 68 68 69 std::cout << deref_data(begin(m)) << std::endl; 69 std::cout << deref_data( next(begin(m))) << std::endl;70 std::cout << deref_data(bf::next(begin(m))) << std::endl; 70 71 71 72 BOOST_TEST(deref_data(begin(m)) == 'X'); 72 BOOST_TEST(deref_data( next(begin(m))) == "Men");73 BOOST_TEST(deref_data(bf::next(begin(m))) == "Men"); 73 74 74 BOOST_STATIC_ASSERT(( is_same<result_of::key_of<result_of::begin<map_type>::type>::type, int>::value));75 BOOST_STATIC_ASSERT(( is_same<result_of::key_of<result_of::next<result_of::begin<map_type>::type>::type>::type, double>::value));76 BOOST_STATIC_ASSERT(( is_same<result_of::value_of_data<result_of::begin<map_type>::type>::type, char>::value));77 BOOST_STATIC_ASSERT(( is_same<result_of::value_of_data<result_of::next<result_of::begin<map_type>::type>::type>::type, std::string>::value));75 BOOST_STATIC_ASSERT((boost::is_same<result_of::key_of<result_of::begin<map_type>::type>::type, int>::value)); 76 BOOST_STATIC_ASSERT((boost::is_same<result_of::key_of<result_of::next<result_of::begin<map_type>::type>::type>::type, double>::value)); 77 BOOST_STATIC_ASSERT((boost::is_same<result_of::value_of_data<result_of::begin<map_type>::type>::type, char>::value)); 78 BOOST_STATIC_ASSERT((boost::is_same<result_of::value_of_data<result_of::next<result_of::begin<map_type>::type>::type>::type, std::string>::value)); 78 79 } 79 80 80 81 { -
libs/fusion/test/sequence/set.cpp
27 27 main() 28 28 { 29 29 using namespace boost::fusion; 30 namespace bf = boost::fusion; 30 31 using namespace boost; 31 32 using namespace std; 32 33 using boost::fusion::pair; … … 61 62 BOOST_STATIC_ASSERT((!result_of::has_key<set_type, double>::value)); 62 63 63 64 std::cout << deref_data(begin(m)) << std::endl; 64 std::cout << deref_data( next(begin(m))) << std::endl;65 std::cout << deref_data(bf::next(begin(m))) << std::endl; 65 66 66 67 BOOST_TEST(deref_data(begin(m)) == 123); 67 BOOST_TEST(deref_data( next(begin(m))) == "Hola");68 BOOST_TEST(deref_data(bf::next(begin(m))) == "Hola"); 68 69 69 BOOST_STATIC_ASSERT(( is_same<result_of::key_of<result_of::begin<set_type>::type>::type, int>::value));70 BOOST_STATIC_ASSERT(( is_same<result_of::key_of<result_of::next<result_of::begin<set_type>::type>::type>::type, std::string>::value));71 BOOST_STATIC_ASSERT(( is_same<result_of::value_of_data<result_of::begin<set_type>::type>::type, int>::value));72 BOOST_STATIC_ASSERT(( is_same<result_of::value_of_data<result_of::next<result_of::begin<set_type>::type>::type>::type, std::string>::value));70 BOOST_STATIC_ASSERT((boost::is_same<result_of::key_of<result_of::begin<set_type>::type>::type, int>::value)); 71 BOOST_STATIC_ASSERT((boost::is_same<result_of::key_of<result_of::next<result_of::begin<set_type>::type>::type>::type, std::string>::value)); 72 BOOST_STATIC_ASSERT((boost::is_same<result_of::value_of_data<result_of::begin<set_type>::type>::type, int>::value)); 73 BOOST_STATIC_ASSERT((boost::is_same<result_of::value_of_data<result_of::next<result_of::begin<set_type>::type>::type>::type, std::string>::value)); 73 74 } 74 75 75 76 {