1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
using def_con_test_types = boost::mpl::list<int, long, unsigned char, double, char>;
BOOST_AUTO_TEST_CASE_TEMPLATE(type2, T, def_con_test_types) {
vector_set <T> v;
v.insert(T(1));
BOOST_CHECK_EQUAL(typeid(v).name(), "class vector_set<"+T+">");
}
using def_con_test_types = boost::mpl::list<int, long, unsigned char, double, char>;
BOOST_AUTO_TEST_CASE_TEMPLATE(type4, T, def_con_test_types) {
vector_set <T> v1;
v1.insert(1);
v1.insert(2);
vector_set <T> ::iterator it = v1.begin();
cout << typeid(it).name() << endl;
BOOST_CHECK_EQUAL(typeid(it).name(), T + "const *");
}
|