Upgrade to fmt 5.x

This commit is contained in:
gabime
2018-06-12 18:48:22 +03:00
parent 378c7789ba
commit cdbf2e361b
23 changed files with 138 additions and 7338 deletions

View File

@@ -158,9 +158,9 @@ public:
spdlog_ex(const std::string &msg, int last_errno)
{
fmt::MemoryWriter writer;
fmt::format_system_error(writer, last_errno, msg);
_msg = writer.str();
fmt::memory_buffer buf;
fmt::format_system_error(buf, last_errno, msg);
_msg = fmt::to_string(buf);
}
const char *what() const SPDLOG_NOEXCEPT override