Make spdlog_ex::spdlog_ex work with fmt 8.0.0

pull/1976/head
Evan Klitzke 4 years ago
parent c858b14c03
commit 1f3bb8df56
No known key found for this signature in database
GPG Key ID: 7547F1FDF6629AFB

@ -56,7 +56,7 @@ SPDLOG_INLINE spdlog_ex::spdlog_ex(std::string msg)
SPDLOG_INLINE spdlog_ex::spdlog_ex(const std::string &msg, int last_errno) SPDLOG_INLINE spdlog_ex::spdlog_ex(const std::string &msg, int last_errno)
{ {
memory_buf_t outbuf; memory_buf_t outbuf;
fmt::format_system_error(outbuf, last_errno, msg); fmt::format_system_error(outbuf, last_errno, msg.c_str());
msg_ = fmt::to_string(outbuf); msg_ = fmt::to_string(outbuf);
} }

Loading…
Cancel
Save