Log, client/Response: adapt to libfmt 8.0.0 API changes
This commit is contained in:
@@ -44,7 +44,11 @@ bool
|
||||
Response::VFmt(fmt::string_view format_str, fmt::format_args args) noexcept
|
||||
{
|
||||
fmt::memory_buffer buffer;
|
||||
#if FMT_VERSION >= 80000
|
||||
fmt::vformat_to(std::back_inserter(buffer), format_str, args);
|
||||
#else
|
||||
fmt::vformat_to(buffer, format_str, args);
|
||||
#endif
|
||||
return Write(buffer.data(), buffer.size());
|
||||
}
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include "protocol/Ack.hxx"
|
||||
|
||||
#include <fmt/core.h>
|
||||
#if FMT_VERSION < 70000
|
||||
#if FMT_VERSION < 70000 || FMT_VERSION >= 80000
|
||||
#include <fmt/format.h>
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user