Added noexcept to log_msg move constructor

This commit is contained in:
gabime 2019-11-08 15:21:18 +02:00
parent 255f7f2dee
commit be336e7514
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ SPDLOG_INLINE log_msg_buffer::log_msg_buffer(const log_msg_buffer &other)
update_string_views(); update_string_views();
} }
SPDLOG_INLINE log_msg_buffer::log_msg_buffer(log_msg_buffer &&other) SPDLOG_INLINE log_msg_buffer::log_msg_buffer(log_msg_buffer &&other) SPDLOG_NOEXCEPT
: log_msg{std::move(other)} : log_msg{std::move(other)}
, buffer{std::move(other.buffer)} , buffer{std::move(other.buffer)}
{ {

View File

@ -20,7 +20,7 @@ public:
log_msg_buffer() = default; log_msg_buffer() = default;
explicit log_msg_buffer(const log_msg &orig_msg); explicit log_msg_buffer(const log_msg &orig_msg);
log_msg_buffer(const log_msg_buffer &other); log_msg_buffer(const log_msg_buffer &other);
log_msg_buffer(log_msg_buffer &&other); log_msg_buffer(log_msg_buffer &&other) SPDLOG_NOEXCEPT;
log_msg_buffer &operator=(const log_msg_buffer &other); log_msg_buffer &operator=(const log_msg_buffer &other);
log_msg_buffer &operator=(log_msg_buffer &&other); log_msg_buffer &operator=(log_msg_buffer &&other);
}; };