diff --git a/test/map_test.hpp b/test/map_test.hpp index 5eee229..45efc31 100644 --- a/test/map_test.hpp +++ b/test/map_test.hpp @@ -387,10 +387,17 @@ int map_test () return 1; if(!CheckEqualPairContainers(boostmultimap, stdmultimap)) return 1; - { - IntType i1(i); - IntType i2(i); - new(&intpair)IntPairType(boost::move(i1), boost::move(i2)); + { //Check equal_range + std::pair bret = + boostmultimap->equal_range(boostmultimap->begin()->first); + + std::pair sret = + stdmultimap->equal_range(stdmultimap->begin()->first); + + if( std::distance(bret.first, bret.second) != + std::distance(sret.first, sret.second) ){ + return 1; + } } { IntType i1(i); diff --git a/test/vector_test.cpp b/test/vector_test.cpp index bf99fea..d7fc47c 100644 --- a/test/vector_test.cpp +++ b/test/vector_test.cpp @@ -94,7 +94,7 @@ enum Test }; int main() -{/* +{ { const std::size_t positions_length = 10; std::size_t positions[positions_length]; @@ -114,7 +114,7 @@ int main() for(std::size_t i = 0, max = vector_int.size(); i != max; ++i){ std::cout << vector_int[i] << std::endl; } - }*/ + } recursive_vector_test(); { //Now test move semantics