Merge pull request #15944 from neheb/spd

spdlog: fix compilation with fmtlib 8
This commit is contained in:
Rosen Penev 2021-06-24 03:18:44 -07:00 committed by GitHub
commit d307101830
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,11 @@
--- a/include/spdlog/common-inl.h
+++ b/include/spdlog/common-inl.h
@@ -60,7 +60,7 @@ SPDLOG_INLINE spdlog_ex::spdlog_ex(std::
SPDLOG_INLINE spdlog_ex::spdlog_ex(const std::string &msg, int last_errno)
{
memory_buf_t outbuf;
- fmt::format_system_error(outbuf, last_errno, msg);
+ fmt::format_system_error(outbuf, last_errno, msg.data());
msg_ = fmt::to_string(outbuf);
}