Added
Link Here
|
1 |
--- include/spdlog/common-inl.h.orig 2021-06-24 13:59:17 UTC |
2 |
+++ include/spdlog/common-inl.h |
3 |
@@ -60,7 +60,7 @@ SPDLOG_INLINE spdlog_ex::spdlog_ex(std::string msg) |
4 |
SPDLOG_INLINE spdlog_ex::spdlog_ex(const std::string &msg, int last_errno) |
5 |
{ |
6 |
memory_buf_t outbuf; |
7 |
- fmt::format_system_error(outbuf, last_errno, msg); |
8 |
+ fmt::format_system_error(outbuf, last_errno, msg.c_str()); |
9 |
msg_ = fmt::to_string(outbuf); |
10 |
} |
11 |
|