Skip to content

Commit

Permalink
Fix windows compile of log_msg_buffer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Nov 29, 2024
1 parent 1d2138f commit 7c6f737
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/details/log_msg_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ namespace details {
// 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{orig_msg} {
buffer.append(logger_name.begin(), logger_name.end());
buffer.append(payload.begin(), payload.end());
buffer.append(logger_name);
buffer.append(payload);
update_string_views();
}

log_msg_buffer::log_msg_buffer(const log_msg_buffer &other)
: log_msg{other} {
buffer.append(logger_name.begin(), logger_name.end());
buffer.append(payload.begin(), payload.end());
buffer.append(logger_name);
buffer.append(payload);
update_string_views();
}

Expand Down

0 comments on commit 7c6f737

Please sign in to comment.