Added insertion test to vector-like containers

[SVN r83469]
This commit is contained in:
Ion Gaztañaga
2013-03-16 19:31:32 +00:00
parent 6c13bd4918
commit 7634deec5c
3 changed files with 11 additions and 3 deletions

View File

@@ -665,8 +665,8 @@ use [*Boost.Container]? There are several reasons for that:
* Support for `BOOST_NO_EXCEPTIONS` [@https://svn.boost.org/trac/boost/ticket/7227 #7227].
* Fixed bugs [@https://svn.boost.org/trac/boost/ticket/7921 #7921],
[@https://svn.boost.org/trac/boost/ticket/7969 #7969],
[@https://svn.boost.org/trac/boost/ticket/8118 #8118].
[@https://svn.boost.org/trac/boost/ticket/8118 #8118],
[@https://svn.boost.org/trac/boost/ticket/8294 #8294].
[endsect]
[section:release_notes_boost_1_53_00 Boost 1.53 Release]

View File

@@ -300,6 +300,9 @@
<File
RelativePath="..\..\test\heap_allocator_v1.hpp">
</File>
<File
RelativePath="..\..\test\insert_test.hpp">
</File>
<File
RelativePath="..\..\test\Jamfile.v2">
</File>

View File

@@ -31,6 +31,7 @@
#include <boost/move/utility.hpp>
#include <boost/move/iterator.hpp>
#include <boost/detail/no_exceptions_support.hpp>
#include "insert_test.hpp"
namespace boost{
namespace container {
@@ -102,6 +103,10 @@ int vector_test()
typedef typename MyBoostVector::value_type IntType;
const int max = 100;
if(!test_range_insertion<MyBoostVector>()){
return 1;
}
{
BOOST_TRY{
MyBoostVector *boostvector = new MyBoostVector;
@@ -317,6 +322,7 @@ int vector_test()
}
BOOST_CATCH_END
}
std::cout << std::endl << "Test OK!" << std::endl;
return 0;
}
@@ -328,4 +334,3 @@ int vector_test()
#include <boost/container/detail/config_end.hpp>
#endif //BOOST_CONTAINER_TEST_VECTOR_TEST_HEADER