We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e0d2e commit b6da594Copy full SHA for b6da594
include/spdlog/details/thread_pool.h
@@ -49,12 +49,12 @@ struct async_msg : log_msg_buffer {
49
flush_callback(std::move(other.flush_callback)) {
50
other.flush_callback = nullptr;
51
}
52
+
53
async_msg &operator=(async_msg &&other) SPDLOG_NOEXCEPT {
54
*static_cast<log_msg_buffer *>(this) = static_cast<log_msg_buffer&&>(other);
55
msg_type = other.msg_type;
56
worker_ptr = std::move(other.worker_ptr);
- flush_callback = std::move(other.flush_callback);
57
- other.flush_callback = nullptr;
+ std::swap(flush_callback, other.flush_callback);
58
return *this;
59
60
0 commit comments