$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Interprocess] move semantics for intrusive_ptr
From: Mikolaj Krzewicki (mikolaj.krzewicki_at_[hidden])
Date: 2017-01-13 07:42:45
Dear all,
would it be possible to add the rvalue operators to
interprocess::intrusive_ptr akin to what is already available in
"regular" boost::intrusive_ptr:
// Move support
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
intrusive_ptr(intrusive_ptr && rhs) BOOST_NOEXCEPT : px( rhs.px )
{
rhs.px = 0;
}
intrusive_ptr & operator=(intrusive_ptr && rhs) BOOST_NOEXCEPT
{
this_type( static_cast< intrusive_ptr && >( rhs ) ).swap(*this);
return *this;
}
#endif
many thanks,
Mikolaj