mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
Fix log msg buffer operator=
This commit is contained in:
parent
c368500efd
commit
216f905670
@ -36,6 +36,7 @@ namespace details {
|
|||||||
SPDLOG_INLINE log_msg_buffer &log_msg_buffer::operator=(const log_msg_buffer &other)
|
SPDLOG_INLINE log_msg_buffer &log_msg_buffer::operator=(const log_msg_buffer &other)
|
||||||
{
|
{
|
||||||
log_msg::operator=(other);
|
log_msg::operator=(other);
|
||||||
|
buffe.clear();
|
||||||
buffer.append(other.buffer.data(), other.buffer.data() + other.buffer.size());
|
buffer.append(other.buffer.data(), other.buffer.data() + other.buffer.size());
|
||||||
update_string_views();
|
update_string_views();
|
||||||
return *this;
|
return *this;
|
||||||
|
Loading…
Reference in New Issue
Block a user