Merge pull request #581 from Teebonne/patch-1

Fixes warning noexcept
This commit is contained in:
Gudmundur Adalsteinsson 2022-10-16 14:29:17 +00:00 committed by GitHub
commit c66fc6094b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -343,10 +343,10 @@ class multipart_t
multipart_t(message_t &&message) { add(std::move(message)); }
// Move constructor
multipart_t(multipart_t &&other) { m_parts = std::move(other.m_parts); }
multipart_t(multipart_t &&other) ZMQ_NOTHROW { m_parts = std::move(other.m_parts); }
// Move assignment operator
multipart_t &operator=(multipart_t &&other)
multipart_t &operator=(multipart_t &&other) ZMQ_NOTHROW
{
m_parts = std::move(other.m_parts);
return *this;