mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 06:32:06 +08:00
Update log_msg_buffer.h
This commit is contained in:
parent
b3fb4c1265
commit
2331750b58
@ -8,14 +8,13 @@
|
|||||||
namespace spdlog {
|
namespace spdlog {
|
||||||
namespace details {
|
namespace details {
|
||||||
|
|
||||||
// extend log_msg with internal buffer to store its payload.
|
// Extend log_msg with internal buffer to store its payload.
|
||||||
// this is needed since log_msg holds string_views that points to stack data.
|
// THis is needed since log_msg holds string_views that points to stack data.
|
||||||
|
|
||||||
class log_msg_buffer : public log_msg
|
class log_msg_buffer : public log_msg
|
||||||
{
|
{
|
||||||
memory_buf_t buffer;
|
memory_buf_t buffer;
|
||||||
void update_string_views();
|
void update_string_views();
|
||||||
|
|
||||||
public:
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user