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 96179f8 commit 27267ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/knowrob/Printable.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ namespace knowrob {
}
}

template <>
struct fmt::formatter<knowrob::Printable> : public fmt::formatter<std::string> {

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

0 comments on commit 27267ec

Please sign in to comment.