Ticket #5275: fusion-std2.patch
File fusion-std2.patch, 9.8 KB (added by , 12 years ago) |
---|
-
libs/fusion/test/sequence/adapt_tpl_adt.cpp
65 65 main() 66 66 { 67 67 using namespace boost::fusion; 68 using namespace std;69 68 70 69 typedef ns::point<int, int> point; 71 70 -
libs/fusion/test/sequence/adapt_struct_named.cpp
56 56 { 57 57 using namespace boost::fusion; 58 58 using namespace boost; 59 using namespace std;60 59 61 60 std::cout << tuple_open('['); 62 61 std::cout << tuple_close(']'); -
libs/fusion/test/sequence/map.cpp
28 28 { 29 29 using namespace boost::fusion; 30 30 using namespace boost; 31 using namespace std;32 31 namespace fusion = boost::fusion; 33 32 using boost::fusion::pair; 34 33 using boost::fusion::make_pair; -
libs/fusion/test/sequence/adapt_assoc_struct.cpp
61 61 { 62 62 using namespace boost::fusion; 63 63 using namespace boost; 64 using namespace std;65 64 66 65 std::cout << tuple_open('['); 67 66 std::cout << tuple_close(']'); -
libs/fusion/test/sequence/adapt_assoc_tpl_adt.cpp
57 57 main() 58 58 { 59 59 using namespace boost::fusion; 60 using namespace std;61 60 62 61 typedef ns::point<int,int> point; 63 62 -
libs/fusion/test/sequence/set.cpp
28 28 { 29 29 using namespace boost::fusion; 30 30 using namespace boost; 31 using namespace std;32 31 namespace fusion = boost::fusion; 33 32 using boost::fusion::pair; 34 33 using boost::fusion::make_pair; -
libs/fusion/test/sequence/vector_n.cpp
30 30 { 31 31 using namespace boost::fusion; 32 32 using namespace boost; 33 using namespace std;34 33 35 34 { 36 35 vector0<> vec; 37 36 (void) vec; 38 cout << "(): " << sizeof(vec) <<endl;39 cout << (boost::is_empty<vector0<> >::value ? "is empty" : "is not empty") <<endl;37 std::cout << "(): " << sizeof(vec) << std::endl; 38 std::cout << (boost::is_empty<vector0<> >::value ? "is empty" : "is not empty") << std::endl; 40 39 } 41 40 42 41 { … … 56 55 typedef vector1<int> type; 57 56 type vec(123); 58 57 BOOST_TEST(at_c<0>(vec) == 123); 59 cout << "(int): " << sizeof(vec) <<endl;58 std::cout << "(int): " << sizeof(vec) << std::endl; 60 59 } 61 60 62 61 { // testing const vector … … 91 90 type vec(123, 'x'); 92 91 BOOST_TEST(at_c<0>(vec) == 123); 93 92 BOOST_TEST(at_c<1>(vec) == 'x'); 94 cout << "(int, char): " << sizeof(vec) <<endl;93 std::cout << "(int, char): " << sizeof(vec) << std::endl; 95 94 } 96 95 97 96 { … … 120 119 BOOST_TEST(at_c<0>(vec) == 123); 121 120 BOOST_TEST(at_c<1>(vec) == 'x'); 122 121 BOOST_TEST(at_c<2>(vec) >= 123.455 && at_c<2>(vec) <= 123.457); 123 cout << "(int, char, double): " << sizeof(vec) <<endl;122 std::cout << "(int, char, double): " << sizeof(vec) << std::endl; 124 123 } 125 124 126 125 { 127 126 typedef vector4<int, char, double, bool> type; 128 127 type vec(123, 'x', 123.456, true); 129 cout << "(int, char, double, bool): " << sizeof(vec) <<endl;128 std::cout << "(int, char, double, bool): " << sizeof(vec) << std::endl; 130 129 } 131 130 132 131 { 133 132 typedef vector4<int, char, bool, double> type; 134 133 type vec(123, 'x', true, 123.456); 135 cout << "(int, char, bool, double): " << sizeof(vec) <<endl;134 std::cout << "(int, char, bool, double): " << sizeof(vec) << std::endl; 136 135 } 137 136 138 137 { … … 154 153 BOOST_STATIC_ASSERT((boost::is_same<long, result_of::value_at_c<type, 4>::type>::value)); 155 154 BOOST_STATIC_ASSERT((boost::is_same<float, result_of::value_at_c<type, 5>::type>::value)); 156 155 BOOST_STATIC_ASSERT((boost::is_same<double, result_of::value_at_c<type, 6>::type>::value)); 157 cout << "(bool, char, short, int, long, float, double): " << sizeof(vec) <<endl;156 std::cout << "(bool, char, short, int, long, float, double): " << sizeof(vec) << std::endl; 158 157 } 159 158 160 159 { 161 160 typedef vector10<int, int, int, int, int, int, int, int, int, int> type; 162 161 type vec; // compile check only 163 cout << "vector10 of int: " << sizeof(vec) <<endl;162 std::cout << "vector10 of int: " << sizeof(vec) << std::endl; 164 163 } 165 164 166 165 { … … 169 168 , int, int, int, int, int, int, int, int, int, int> type; 170 169 171 170 type vec; // compile check only 172 cout << "vector20 of int: " << sizeof(vec) <<endl;171 std::cout << "vector20 of int: " << sizeof(vec) << std::endl; 173 172 } 174 173 175 174 { … … 179 178 , int, int, int, int, int, int, int, int, int, int> type; 180 179 181 180 type vec; // compile check only 182 cout << "vector30 of int: " << sizeof(vec) <<endl;181 std::cout << "vector30 of int: " << sizeof(vec) << std::endl; 183 182 } 184 183 185 184 { … … 190 189 , int, int, int, int, int, int, int, int, int, int> type; 191 190 192 191 type vec; // compile check only 193 cout << "vector40 of int: " << sizeof(vec) <<endl;192 std::cout << "vector40 of int: " << sizeof(vec) << std::endl; 194 193 } 195 194 196 195 { … … 202 201 , int, int, int, int, int, int, int, int, int, int> type; 203 202 204 203 type vec; // compile check only 205 cout << "vector50 of int: " << sizeof(vec) <<endl;204 std::cout << "vector50 of int: " << sizeof(vec) << std::endl; 206 205 } 207 206 208 207 { -
libs/fusion/test/sequence/adapt_adt.cpp
92 92 { 93 93 using namespace boost::fusion; 94 94 using namespace boost; 95 using namespace std;96 95 97 96 std::cout << tuple_open('['); 98 97 std::cout << tuple_close(']'); … … 111 110 at_c<1>(p) = 9; 112 111 BOOST_TEST(p == make_vector(6, 9)); 113 112 114 BOOST_STATIC_ASSERT( result_of::size<ns::point>::value == 2);115 BOOST_STATIC_ASSERT(! result_of::empty<ns::point>::value);113 BOOST_STATIC_ASSERT(boost::fusion::result_of::size<ns::point>::value == 2); 114 BOOST_STATIC_ASSERT(!boost::fusion::result_of::empty<ns::point>::value); 116 115 117 116 BOOST_TEST(front(p) == 6); 118 117 BOOST_TEST(back(p) == 9); -
libs/fusion/test/sequence/adapt_adt_named.cpp
64 64 { 65 65 using namespace boost::fusion; 66 66 using namespace boost; 67 using namespace std;68 67 69 68 std::cout << tuple_open('['); 70 69 std::cout << tuple_close(']'); -
libs/fusion/test/sequence/std_pair.cpp
36 36 { 37 37 using namespace boost::fusion; 38 38 using namespace boost; 39 using namespace std;40 39 41 40 std::cout << tuple_open('['); 42 41 std::cout << tuple_close(']'); -
libs/fusion/test/sequence/adapt_assoc_adt.cpp
55 55 main() 56 56 { 57 57 using namespace boost::fusion; 58 using namespace std;59 58 60 59 std::cout << tuple_open('['); 61 60 std::cout << tuple_close(']'); -
libs/fusion/test/sequence/adapt_assoc_adt_named.cpp
56 56 main() 57 57 { 58 58 using namespace boost::fusion; 59 using namespace std;60 59 61 60 std::cout << tuple_open('['); 62 61 std::cout << tuple_close(']'); -
libs/fusion/test/sequence/boost_tuple.cpp
37 37 { 38 38 using namespace boost::fusion; 39 39 using namespace boost; 40 using namespace std;41 40 42 41 std::cout << tuple_open('['); 43 42 std::cout << tuple_close(']'); -
libs/fusion/test/sequence/adapt_struct.cpp
78 78 { 79 79 using namespace boost::fusion; 80 80 using namespace boost; 81 using namespace std;82 81 83 82 std::cout << tuple_open('['); 84 83 std::cout << tuple_close(']');