aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2024-09-20 16:53:00 +0200
committerGitHub Enterprise <[email protected]>2024-09-20 16:53:00 +0200
commitc8189d26a2e1d57d1ce227b02796276337fba5ca (patch)
tree5b2d235a91a793878ab739d987f671fc8d6fe3f5 /src/zenhttp/include
parent5.5.8-pre0 (diff)
downloadzen-c8189d26a2e1d57d1ce227b02796276337fba5ca.tar.xz
zen-c8189d26a2e1d57d1ce227b02796276337fba5ca.zip
made fmt formatter format function const (#162)
this appears to be required as of fmt v11
Diffstat (limited to 'src/zenhttp/include')
-rw-r--r--src/zenhttp/include/zenhttp/formatters.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenhttp/include/zenhttp/formatters.h b/src/zenhttp/include/zenhttp/formatters.h
index d45f5fbb2..538136238 100644
--- a/src/zenhttp/include/zenhttp/formatters.h
+++ b/src/zenhttp/include/zenhttp/formatters.h
@@ -19,7 +19,7 @@ struct fmt::formatter<cpr::Response>
constexpr auto parse(format_parse_context& Ctx) -> decltype(Ctx.begin()) { return Ctx.end(); }
template<typename FormatContext>
- auto format(const cpr::Response& Response, FormatContext& Ctx) -> decltype(Ctx.out())
+ auto format(const cpr::Response& Response, FormatContext& Ctx) const -> decltype(Ctx.out())
{
using namespace std::literals;
@@ -77,7 +77,7 @@ struct fmt::formatter<zen::HttpClient::Response>
constexpr auto parse(format_parse_context& Ctx) -> decltype(Ctx.begin()) { return Ctx.end(); }
template<typename FormatContext>
- auto format(const zen::HttpClient::Response& Response, FormatContext& Ctx) -> decltype(Ctx.out())
+ auto format(const zen::HttpClient::Response& Response, FormatContext& Ctx) const -> decltype(Ctx.out())
{
using namespace std::literals;