Skip to content

Commit 8c7e4a4

Browse files
committed
Deprecate old construct/destroy functions
1 parent 59d8aa6 commit 8c7e4a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/boost/interprocess/allocators/detail/allocator_common.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,13 @@ class array_allocation_impl
450450
//!Throws if T's constructor throws
451451
//!For backwards compatibility with libraries using C++03 allocators
452452
template<class P>
453+
BOOST_DEPRECATED("This function is deprecated and will be removed in the future")
453454
void construct(const pointer &ptr, BOOST_FWD_REF(P) p)
454455
{ ::new((void*)ipcdetail::to_raw_pointer(ptr), boost_container_new_t()) value_type(::boost::forward<P>(p)); }
455456

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

0 commit comments

Comments
 (0)