lib/fmt/ToBuffer: add missing template parameters

This commit is contained in:
Max Kellermann 2022-11-29 06:33:13 +01:00
parent 1f33ac3e98
commit f62d61f088

View File

@ -54,11 +54,11 @@ auto
FmtBuffer(const S &format_str, Args&&... args) noexcept
{
#if FMT_VERSION >= 90000
return VFmtBuffer(format_str,
fmt::make_format_args(args...));
return VFmtBuffer<size>(format_str,
fmt::make_format_args(args...));
#else
return VFmtBuffer(fmt::to_string_view(format_str),
fmt::make_args_checked<Args...>(format_str,
args...));
return VFmtBuffer<size>(fmt::to_string_view(format_str),
fmt::make_args_checked<Args...>(format_str,
args...));
#endif
}