asio: Add noexcept for move constructor and move assignment operator
This commit is contained in:
parent
36a9cbf41f
commit
773b108eeb
|
@ -49,9 +49,9 @@ session::session(boost::asio::io_service &io_service,
|
||||||
|
|
||||||
session::~session() {}
|
session::~session() {}
|
||||||
|
|
||||||
session::session(session &&other) : impl_(std::move(other.impl_)) {}
|
session::session(session &&other) noexcept : impl_(std::move(other.impl_)) {}
|
||||||
|
|
||||||
session &session::operator=(session &&other) {
|
session &session::operator=(session &&other) noexcept {
|
||||||
if (this == &other) {
|
if (this == &other) {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,9 +40,9 @@ http2::http2() : impl_(make_unique<http2_impl>()) {}
|
||||||
|
|
||||||
http2::~http2() {}
|
http2::~http2() {}
|
||||||
|
|
||||||
http2::http2(http2 &&other) : impl_(std::move(other.impl_)) {}
|
http2::http2(http2 &&other) noexcept : impl_(std::move(other.impl_)) {}
|
||||||
|
|
||||||
http2 &http2::operator=(http2 &&other) {
|
http2 &http2::operator=(http2 &&other) noexcept {
|
||||||
if (this == &other) {
|
if (this == &other) {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,8 +128,8 @@ public:
|
||||||
const std::string &service);
|
const std::string &service);
|
||||||
~session();
|
~session();
|
||||||
|
|
||||||
session(session &&other);
|
session(session &&other) noexcept;
|
||||||
session &operator=(session &&other);
|
session &operator=(session &&other) noexcept;
|
||||||
|
|
||||||
// Sets callback which is invoked after connection is established.
|
// Sets callback which is invoked after connection is established.
|
||||||
void on_connect(connect_cb cb) const;
|
void on_connect(connect_cb cb) const;
|
||||||
|
|
|
@ -126,8 +126,8 @@ public:
|
||||||
http2();
|
http2();
|
||||||
~http2();
|
~http2();
|
||||||
|
|
||||||
http2(http2 &&other);
|
http2(http2 &&other) noexcept;
|
||||||
http2 &operator=(http2 &&other);
|
http2 &operator=(http2 &&other) noexcept;
|
||||||
|
|
||||||
// Starts listening connection on given address and port and serves
|
// Starts listening connection on given address and port and serves
|
||||||
// incoming requests in cleartext TCP connection.
|
// incoming requests in cleartext TCP connection.
|
||||||
|
|
Loading…
Reference in New Issue