From 4e2dfe138beba9f3aad202432fdd76615553dd59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 25 Dec 2015 13:25:56 +0100 Subject: [PATCH] Add workaround to correctly implement allocator_traits::destroy with small_vector_allocator --- include/boost/container/allocator_traits.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/container/allocator_traits.hpp b/include/boost/container/allocator_traits.hpp index b515af6..e6a882e 100644 --- a/include/boost/container/allocator_traits.hpp +++ b/include/boost/container/allocator_traits.hpp @@ -77,6 +77,9 @@ namespace container { #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED +template +class small_vector_allocator; + namespace allocator_traits_detail { BOOST_INTRUSIVE_HAS_STATIC_MEMBER_FUNC_SIGNATURE(has_max_size, max_size) @@ -96,6 +99,10 @@ template struct is_std_allocator< std::allocator > { static const bool value = true; }; +template +struct is_std_allocator< small_vector_allocator< std::allocator > > +{ static const bool value = true; }; + template struct is_not_std_allocator { static const bool value = !is_std_allocator::value; };