mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Conditionally replace deprecated/removed std::auto_ptr by std::unique_ptr.
Inline typedefs from deprecated/removed C++98 function adapters. Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
@@ -251,7 +251,11 @@ bool test_buffer_overflow()
|
||||
{
|
||||
boost::interprocess::message_queue::remove(test::get_process_id_name());
|
||||
{
|
||||
#ifdef BOOST_NO_AUTO_PTR
|
||||
std::unique_ptr<boost::interprocess::message_queue>
|
||||
#else
|
||||
std::auto_ptr<boost::interprocess::message_queue>
|
||||
#endif
|
||||
ptr(new boost::interprocess::message_queue
|
||||
(create_only, test::get_process_id_name(), 10, 10));
|
||||
pmessage_queue = ptr.get();
|
||||
|
||||
Reference in New Issue
Block a user