Skip to content
Snippets Groups Projects
Unverified Commit a0b20398 authored by Nicolas Werner's avatar Nicolas Werner Committed by GitHub
Browse files

Merge pull request #108 from tchaikov/fmt-11

Fix build with fmt 11
parents 018e208d 4a4726c7
No related branches found
Tags v0.1.0
No related merge requests found
Pipeline #5886 failed
......@@ -87,7 +87,7 @@ struct fmt::formatter<mtx::http::ClientError>
// Formats the point p using the parsed format specification (presentation)
// stored in this formatter.
template<typename FormatContext>
auto format(const mtx::http::ClientError &e, FormatContext &ctx) -> decltype(ctx.out())
auto format(const mtx::http::ClientError &e, FormatContext &ctx) const -> decltype(ctx.out())
{
// ctx.out() is an output iterator to write to.
bool prepend_comma = false;
......@@ -132,7 +132,7 @@ struct fmt::formatter<std::optional<mtx::http::ClientError>> : formatter<mtx::ht
{
// parse is inherited from formatter<string_view>.
template<typename FormatContext>
auto format(std::optional<mtx::http::ClientError> c, FormatContext &ctx)
auto format(std::optional<mtx::http::ClientError> c, FormatContext &ctx) const
{
if (!c)
return fmt::format_to(ctx.out(), "(no error)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment