diff options
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; } |