Fixes warning

This type of function should not throw, adding noexcept
This commit is contained in:
Teebonne 2022-10-14 01:02:54 +01:00 committed by GitHub
parent d96155cbc3
commit fa0f112ac6
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) 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;