Skip to content

Commit fa0f112

Browse files
authored
Fixes warning
This type of function should not throw, adding noexcept
1 parent d96155c commit fa0f112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zmq_addon.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,10 @@ class multipart_t
343343
multipart_t(message_t &&message) { add(std::move(message)); }
344344

345345
// Move constructor
346-
multipart_t(multipart_t &&other) { m_parts = std::move(other.m_parts); }
346+
multipart_t(multipart_t &&other) noexcept { m_parts = std::move(other.m_parts); }
347347

348348
// Move assignment operator
349-
multipart_t &operator=(multipart_t &&other)
349+
multipart_t &operator=(multipart_t &&other) noexcept
350350
{
351351
m_parts = std::move(other.m_parts);
352352
return *this;

0 commit comments

Comments
 (0)