From 59d8aa6328eb053221a3064717610d2d3607d8ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 10 Jan 2026 23:33:12 +0100 Subject: [PATCH] Avoid using deprecated functions internally --- include/boost/interprocess/allocators/allocator.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/interprocess/allocators/allocator.hpp b/include/boost/interprocess/allocators/allocator.hpp index 6e07257..f8f7e6c 100644 --- a/include/boost/interprocess/allocators/allocator.hpp +++ b/include/boost/interprocess/allocators/allocator.hpp @@ -284,7 +284,7 @@ class allocator //!will be assigned to received_size. Memory allocated with this function //!must be deallocated only with deallocate_one(). void allocate_individual(size_type num_elements, multiallocation_chain &chain) - { this->allocate_many(1, num_elements, chain); } + { mp_mngr->allocate_many(sizeof(T), num_elements, boost::container::dtl::alignment_of::value, chain); } //!Deallocates memory previously allocated with allocate_one(). //!You should never use deallocate_one to deallocate memory allocated @@ -299,7 +299,7 @@ class allocator //!will be assigned to received_size. Memory allocated with this function //!must be deallocated only with deallocate_one(). void deallocate_individual(multiallocation_chain &chain) - { this->deallocate_many(chain); } + { mp_mngr->deallocate_many(chain); } //!Returns address of mutable object. //!Never throws