asio: Add noexcept for move constructor and move assignment operator

This commit is contained in:
Tatsuhiro Tsujikawa 2015-03-07 00:32:39 +09:00
parent 36a9cbf41f
commit 773b108eeb
4 changed files with 8 additions and 8 deletions

View File

@ -49,9 +49,9 @@ session::session(boost::asio::io_service &io_service,
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) {
return *this;
}

View File

@ -40,9 +40,9 @@ http2::http2() : impl_(make_unique<http2_impl>()) {}
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) {
return *this;
}

View File

@ -128,8 +128,8 @@ public:
const std::string &service);
~session();
session(session &&other);
session &operator=(session &&other);
session(session &&other) noexcept;
session &operator=(session &&other) noexcept;
// Sets callback which is invoked after connection is established.
void on_connect(connect_cb cb) const;

View File

@ -126,8 +126,8 @@ public:
http2();
~http2();
http2(http2 &&other);
http2 &operator=(http2 &&other);
http2(http2 &&other) noexcept;
http2 &operator=(http2 &&other) noexcept;
// Starts listening connection on given address and port and serves
// incoming requests in cleartext TCP connection.