We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59d8aa6 commit 8c7e4a4Copy full SHA for 8c7e4a4
1 file changed
include/boost/interprocess/allocators/detail/allocator_common.hpp
@@ -450,11 +450,13 @@ class array_allocation_impl
450
//!Throws if T's constructor throws
451
//!For backwards compatibility with libraries using C++03 allocators
452
template<class P>
453
+ BOOST_DEPRECATED("This function is deprecated and will be removed in the future")
454
void construct(const pointer &ptr, BOOST_FWD_REF(P) p)
455
{ ::new((void*)ipcdetail::to_raw_pointer(ptr), boost_container_new_t()) value_type(::boost::forward<P>(p)); }
456
457
//!Destroys object. Throws if object's
458
//!destructor throws
459
460
void destroy(const pointer &ptr)
461
{ BOOST_ASSERT(ptr != 0); (*ptr).~value_type(); }
462
};
0 commit comments