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 27267ec commit 79e1fe2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/knowrob/Printable.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ namespace knowrob {
}
}

#include <fmt/ostream.h>
template <> struct fmt::formatter<knowrob::Printable> : fmt::ostream_formatter {};

/*
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());
}
};

*/

#endif //KNOWROB_PRINTABLE_H

0 comments on commit 79e1fe2

Please sign in to comment.