Skip to content

Commit

Permalink
Update Printable.h
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel86 authored Sep 8, 2024
1 parent 1f4d14a commit 96179f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/knowrob/Printable.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ namespace knowrob {
}
}

template <> struct fmt::formatter<knowrob::Printable> {
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }

template <>
struct fmt::formatter<knowrob::Printable> : public fmt::formatter<std::string> {
template <typename FormatContext>
constexpr auto format(knowrob::Printable& p, FormatContext& ctx) const {
constexpr auto format(const knowrob::Printable& p, FormatContext& ctx) const {
return fmt::format_to(ctx.out(), "{}", p.format());
}
};
Expand Down

0 comments on commit 96179f8

Please sign in to comment.