From fa0f112ac6d38baa4583461447cbe61881ae6723 Mon Sep 17 00:00:00 2001 From: Teebonne <80053070+Teebonne@users.noreply.github.com> Date: Fri, 14 Oct 2022 01:02:54 +0100 Subject: [PATCH] Fixes warning This type of function should not throw, adding noexcept --- zmq_addon.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zmq_addon.hpp b/zmq_addon.hpp index 1cba08a..9db2212 100644 --- a/zmq_addon.hpp +++ b/zmq_addon.hpp @@ -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) noexcept { m_parts = std::move(other.m_parts); } // Move assignment operator - multipart_t &operator=(multipart_t &&other) + multipart_t &operator=(multipart_t &&other) noexcept { m_parts = std::move(other.m_parts); return *this;