mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-28 00:10:21 +08:00
Fix windows compile of log_msg_buffer.cpp
This commit is contained in:
parent
1d2138fdbe
commit
7c6f737990
@ -12,15 +12,15 @@ namespace details {
|
|||||||
// if you pass custom strings to source location, make sure they outlive the log_msg_buffer
|
// if you pass custom strings to source location, make sure they outlive the log_msg_buffer
|
||||||
log_msg_buffer::log_msg_buffer(const log_msg &orig_msg)
|
log_msg_buffer::log_msg_buffer(const log_msg &orig_msg)
|
||||||
: log_msg{orig_msg} {
|
: log_msg{orig_msg} {
|
||||||
buffer.append(logger_name.begin(), logger_name.end());
|
buffer.append(logger_name);
|
||||||
buffer.append(payload.begin(), payload.end());
|
buffer.append(payload);
|
||||||
update_string_views();
|
update_string_views();
|
||||||
}
|
}
|
||||||
|
|
||||||
log_msg_buffer::log_msg_buffer(const log_msg_buffer &other)
|
log_msg_buffer::log_msg_buffer(const log_msg_buffer &other)
|
||||||
: log_msg{other} {
|
: log_msg{other} {
|
||||||
buffer.append(logger_name.begin(), logger_name.end());
|
buffer.append(logger_name);
|
||||||
buffer.append(payload.begin(), payload.end());
|
buffer.append(payload);
|
||||||
update_string_views();
|
update_string_views();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user