Mark posix descriptor classes' move constructors as noexcept.
This commit is contained in:
parent
8dc44bc23b
commit
992a656e26
@ -51,6 +51,7 @@ void reactive_descriptor_service::construct(
|
|||||||
void reactive_descriptor_service::move_construct(
|
void reactive_descriptor_service::move_construct(
|
||||||
reactive_descriptor_service::implementation_type& impl,
|
reactive_descriptor_service::implementation_type& impl,
|
||||||
reactive_descriptor_service::implementation_type& other_impl)
|
reactive_descriptor_service::implementation_type& other_impl)
|
||||||
|
ASIO_NOEXCEPT
|
||||||
{
|
{
|
||||||
impl.descriptor_ = other_impl.descriptor_;
|
impl.descriptor_ = other_impl.descriptor_;
|
||||||
other_impl.descriptor_ = -1;
|
other_impl.descriptor_ = -1;
|
||||||
|
@ -85,7 +85,7 @@ public:
|
|||||||
|
|
||||||
// Move-construct a new descriptor implementation.
|
// Move-construct a new descriptor implementation.
|
||||||
ASIO_DECL void move_construct(implementation_type& impl,
|
ASIO_DECL void move_construct(implementation_type& impl,
|
||||||
implementation_type& other_impl);
|
implementation_type& other_impl) ASIO_NOEXCEPT;
|
||||||
|
|
||||||
// Move-assign from another descriptor implementation.
|
// Move-assign from another descriptor implementation.
|
||||||
ASIO_DECL void move_assign(implementation_type& impl,
|
ASIO_DECL void move_assign(implementation_type& impl,
|
||||||
|
@ -168,7 +168,7 @@ public:
|
|||||||
* constructed using the @c basic_descriptor(const executor_type&)
|
* constructed using the @c basic_descriptor(const executor_type&)
|
||||||
* constructor.
|
* constructor.
|
||||||
*/
|
*/
|
||||||
basic_descriptor(basic_descriptor&& other)
|
basic_descriptor(basic_descriptor&& other) ASIO_NOEXCEPT
|
||||||
: impl_(std::move(other.impl_))
|
: impl_(std::move(other.impl_))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ public:
|
|||||||
* constructed using the @c basic_stream_descriptor(const executor_type&)
|
* constructed using the @c basic_stream_descriptor(const executor_type&)
|
||||||
* constructor.
|
* constructor.
|
||||||
*/
|
*/
|
||||||
basic_stream_descriptor(basic_stream_descriptor&& other)
|
basic_stream_descriptor(basic_stream_descriptor&& other) ASIO_NOEXCEPT
|
||||||
: descriptor(std::move(other))
|
: descriptor(std::move(other))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user