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:
Daniela Engert
2017-05-12 08:26:21 +02:00
parent 4178baf834
commit 08b25cdcdb
3 changed files with 10 additions and 3 deletions

View File

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