mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Use boost::movelib::unique_ptr instead of std::auto_ptr vs. std::unique_ptr
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#include <boost/intrusive/detail/minimal_pair_header.hpp>
|
||||
#include <boost/intrusive/detail/minimal_less_equal_header.hpp>
|
||||
|
||||
#include <boost/move/unique_ptr.hpp>
|
||||
|
||||
#include <cstddef>
|
||||
#include <memory>
|
||||
#include <iostream>
|
||||
@@ -251,11 +253,7 @@ 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
|
||||
boost::movelib::unique_ptr<boost::interprocess::message_queue>
|
||||
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