diff --git a/include/knowrob/terms/Term.h b/include/knowrob/terms/Term.h index 38dc76610b..e29d32dd34 100644 --- a/include/knowrob/terms/Term.h +++ b/include/knowrob/terms/Term.h @@ -117,6 +117,8 @@ namespace knowrob { using TermPtr = std::shared_ptr; } -//template <> struct fmt::formatter : fmt::ostream_formatter {}; +#if FMT_VERSION >= 90000 +template <> struct fmt::formatter : fmt::ostream_formatter {}; +#endif #endif //KNOWROB_TERM_H_