Skip to content

Commit

Permalink
deps/spdlog: fix conversion from const string to const char*
Browse files Browse the repository at this point in the history
Fixes:

  error: cannot convert ‘const string’ {aka ‘const std::__cxx11::basic_string<char>’}
  to ‘const char*’

Signed-off-by: Thomas Debesse <[email protected]>
  • Loading branch information
illwieckz committed Oct 31, 2022
1 parent 9b35fd1 commit 7fd5096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/spdlog-1.8.0/include/spdlog/common-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7fd5096

Please sign in to comment.