From 8c7e4a4fba8076daf96e6d5dda34c44b0e2603b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 11 Jan 2026 01:14:46 +0100 Subject: [PATCH] Deprecate old construct/destroy functions --- .../boost/interprocess/allocators/detail/allocator_common.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/interprocess/allocators/detail/allocator_common.hpp b/include/boost/interprocess/allocators/detail/allocator_common.hpp index bd22b6b..87c6287 100644 --- a/include/boost/interprocess/allocators/detail/allocator_common.hpp +++ b/include/boost/interprocess/allocators/detail/allocator_common.hpp @@ -450,11 +450,13 @@ class array_allocation_impl //!Throws if T's constructor throws //!For backwards compatibility with libraries using C++03 allocators template + BOOST_DEPRECATED("This function is deprecated and will be removed in the future") void construct(const pointer &ptr, BOOST_FWD_REF(P) p) { ::new((void*)ipcdetail::to_raw_pointer(ptr), boost_container_new_t()) value_type(::boost::forward

(p)); } //!Destroys object. Throws if object's //!destructor throws + BOOST_DEPRECATED("This function is deprecated and will be removed in the future") void destroy(const pointer &ptr) { BOOST_ASSERT(ptr != 0); (*ptr).~value_type(); } };