Skip to content

Commit

Permalink
TEMPORARY: fedora build still broken; ranges + formatter<string_view>?
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiman committed Dec 9, 2023
1 parent 045adcc commit 1409ce2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/v/kafka/protocol/schemata/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,10 @@ def is_error_code(self):
{% macro render_formatter(struct) %}
{%- if not struct.is_streamable %}
template<>
struct fmt::formatter<kafka::{{ struct.name }}> : fmt::formatter<std::string_view> {
struct fmt::formatter<kafka::{{ struct.name }}> {
template <typename ParseContext>
constexpr auto parse(ParseContext &ctx) -> decltype(ctx.begin()) { return ctx.begin(); }
template <typename FormatContext>
auto format([[maybe_unused]] const kafka::{{ struct.name }} &v, FormatContext& ctx) const
-> decltype(ctx.out());
Expand Down

0 comments on commit 1409ce2

Please sign in to comment.