diff --git a/include/boost/container/allocator.hpp b/include/boost/container/allocator.hpp index 27fe1455..6d7c1835 100644 --- a/include/boost/container/allocator.hpp +++ b/include/boost/container/allocator.hpp @@ -288,7 +288,7 @@ class allocator void allocate_many(size_type elem_size, std::size_t n_elements, multiallocation_chain &chain) { BOOST_CONTAINER_STATIC_ASSERT(( Version > 1 )); - dlmalloc::memchain ch; + dlmalloc::memchain ch; if(!dlmalloc_heap().multialloc_nodes(n_elements, elem_size*sizeof(T), dlmalloc::default_contiguous, &ch)){ boost::container::throw_bad_alloc(); } @@ -309,7 +309,7 @@ class allocator void allocate_many(const size_type *elem_sizes, size_type n_elements, multiallocation_chain &chain) { BOOST_CONTAINER_STATIC_ASSERT(( Version > 1 )); - dlmalloc::memchain ch; + dlmalloc::memchain ch; if(!dlmalloc_heap().multialloc_arrays(n_elements, elem_sizes, sizeof(T), dlmalloc::default_contiguous, &ch)){ boost::container::throw_bad_alloc(); } diff --git a/include/boost/container/node_allocator.hpp b/include/boost/container/node_allocator.hpp index 92569464..0f6804ce 100644 --- a/include/boost/container/node_allocator.hpp +++ b/include/boost/container/node_allocator.hpp @@ -271,7 +271,7 @@ class node_allocator void allocate_many(size_type elem_size, std::size_t n_elements, multiallocation_chain &chain) { BOOST_CONTAINER_STATIC_ASSERT(( Version > 1 )); - dlmalloc::memchain ch; + dlmalloc::memchain ch; if(BOOST_UNLIKELY(!dlmalloc_heap().multialloc_nodes(n_elements, elem_size*sizeof(T), dlmalloc::default_contiguous, &ch))){ boost::container::throw_bad_alloc(); } @@ -286,7 +286,7 @@ class node_allocator void allocate_many(const size_type *elem_sizes, size_type n_elements, multiallocation_chain &chain) { BOOST_CONTAINER_STATIC_ASSERT(( Version > 1 )); - dlmalloc::memchain ch; + dlmalloc::memchain ch; dlmalloc_heap().multialloc_arrays(n_elements, elem_sizes, sizeof(T), dlmalloc::default_contiguous, &ch); if(BOOST_UNLIKELY(ch.empty())){ boost::container::throw_bad_alloc();