From eaff9ad2b05e7238a38c266523d6511cd3d6066a Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Mon, 31 Oct 2022 11:52:31 +0100 Subject: [PATCH] deps/spdlog: fix conversion from const string to const char* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: error: cannot convert ‘const string’ {aka ‘const std::__cxx11::basic_string’} to ‘const char*’ Signed-off-by: Thomas Debesse --- deps/spdlog-1.8.0/include/spdlog/common-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/spdlog-1.8.0/include/spdlog/common-inl.h b/deps/spdlog-1.8.0/include/spdlog/common-inl.h index be0d8f8ea..4e5a09cb9 100644 --- a/deps/spdlog-1.8.0/include/spdlog/common-inl.h +++ b/deps/spdlog-1.8.0/include/spdlog/common-inl.h @@ -54,7 +54,7 @@ SPDLOG_INLINE spdlog_ex::spdlog_ex(std::string msg) 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.c_str()); msg_ = fmt::to_string(outbuf); }