diff options
| author | Stefan Boberg <[email protected]> | 2024-09-20 16:53:00 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-09-20 16:53:00 +0200 |
| commit | c8189d26a2e1d57d1ce227b02796276337fba5ca (patch) | |
| tree | 5b2d235a91a793878ab739d987f671fc8d6fe3f5 /src/zenhttp/include | |
| parent | 5.5.8-pre0 (diff) | |
| download | zen-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.h | 4 |
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; |