Fix find/replace bug in test name

This commit is contained in:
Ion Gaztañaga
2021-04-19 21:53:54 +02:00
parent 249d537b58
commit a5cc4f1eef

View File

@@ -55,13 +55,13 @@ struct vector_hash_function_capacity
}; };
template<class V1, class V2> template<class V1, class V2>
bool vector_vector_hash_function_capacity_only(V1&, V2&, boost::container::dtl::false_type) bool vector_capacity_test(V1&, V2&, boost::container::dtl::false_type)
{ {
return true; return true;
} }
template<class MyBoostVector, class MyStdVector> template<class MyBoostVector, class MyStdVector>
bool vector_vector_hash_function_capacity_only(MyBoostVector&boostvector, MyStdVector&stdvector, boost::container::dtl::true_type) bool vector_capacity_test(MyBoostVector&boostvector, MyStdVector&stdvector, boost::container::dtl::true_type)
{ {
//deque has no reserve //deque has no reserve
boostvector.reserve(boostvector.size()*2); boostvector.reserve(boostvector.size()*2);
@@ -496,7 +496,7 @@ int vector_test()
if(!test::CheckEqualContainers(boostvector, stdvector)) return 1; if(!test::CheckEqualContainers(boostvector, stdvector)) return 1;
} }
if(!vector_vector_hash_function_capacity_only(boostvector, stdvector, dtl::bool_<vector_hash_function_capacity<MyBoostVector>::value>())) if(!vector_capacity_test(boostvector, stdvector, dtl::bool_<vector_hash_function_capacity<MyBoostVector>::value>()))
return 1; return 1;
boostvector.clear(); boostvector.clear();