diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-04-08 03:09:47 +0000 |
---|---|---|
committer | <> | 2015-05-05 14:37:32 +0000 |
commit | f2541bb90af059680aa7036f315f052175999355 (patch) | |
tree | a5b214744b256f07e1dc2bd7273035a7808c659f /libs/container/test/vector_test.cpp | |
parent | ed232fdd34968697a68783b3195b1da4226915b5 (diff) | |
download | boost-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/container/test/vector_test.cpp')
-rw-r--r-- | libs/container/test/vector_test.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/libs/container/test/vector_test.cpp b/libs/container/test/vector_test.cpp index 0ec3eb157..b84026237 100644 --- a/libs/container/test/vector_test.cpp +++ b/libs/container/test/vector_test.cpp @@ -7,10 +7,8 @@ // See http://www.boost.org/libs/container for documentation. // ////////////////////////////////////////////////////////////////////////////// - #include <memory> #include <iostream> -#include <functional> #include <boost/container/vector.hpp> #include <boost/container/allocator.hpp> @@ -147,6 +145,22 @@ int test_cont_variants() return 0; } +struct boost_container_vector; + +namespace boost { namespace container { namespace test { + +template<> +struct alloc_propagate_base<boost_container_vector> +{ + template <class T, class Allocator> + struct apply + { + typedef boost::container::vector<T, Allocator> type; + }; +}; + +}}} //namespace boost::container::test + int main() { { @@ -237,7 +251,7 @@ int main() //////////////////////////////////// // Allocator propagation testing //////////////////////////////////// - if(!boost::container::test::test_propagate_allocator<vector>()){ + if(!boost::container::test::test_propagate_allocator<boost_container_vector>()){ return 1; } |