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(); } };