diff --git a/include/boost/interprocess/allocators/adaptive_pool.hpp b/include/boost/interprocess/allocators/adaptive_pool.hpp index 10dded6..3a8e0e0 100644 --- a/include/boost/interprocess/allocators/adaptive_pool.hpp +++ b/include/boost/interprocess/allocators/adaptive_pool.hpp @@ -415,7 +415,7 @@ class adaptive_pool //!Allocate memory for an array of count elements. //!Throws boost::interprocess::bad_alloc if there is no enough memory - pointer allocate(size_type count, cvoid_pointer hint = 0); + pointer allocate(size_type count); //!Deallocate allocated memory. //!Never throws diff --git a/include/boost/interprocess/allocators/detail/allocator_common.hpp b/include/boost/interprocess/allocators/detail/allocator_common.hpp index 54cbe5c..7ca7e25 100644 --- a/include/boost/interprocess/allocators/detail/allocator_common.hpp +++ b/include/boost/interprocess/allocators/detail/allocator_common.hpp @@ -533,9 +533,8 @@ class node_pool_allocation_impl //!Allocate memory for an array of count elements. //!Throws boost::interprocess::bad_alloc if there is no enough memory BOOST_INTERPROCESS_NODISCARD - pointer allocate(size_type count, cvoid_pointer hint = 0) + pointer allocate(size_type count) { - (void)hint; typedef typename node_pool<0>::type node_pool_t; node_pool_t *pool = node_pool<0>::get(this->derived()->get_node_pool()); if(size_overflows(count)){ @@ -728,9 +727,8 @@ class cached_allocator_impl //!Allocate memory for an array of count elements. //!Throws boost::interprocess::bad_alloc if there is no enough memory BOOST_INTERPROCESS_NODISCARD - pointer allocate(size_type count, cvoid_pointer hint = 0) + pointer allocate(size_type count) { - (void)hint; void * ret; if(size_overflows(count)){ throw bad_alloc();