diff --git a/include/REL/Version.h b/include/REL/Version.h index c5b396812..63aba38ff 100644 --- a/include/REL/Version.h +++ b/include/REL/Version.h @@ -99,3 +99,15 @@ struct std::formatter : formatter } }; #endif + +#ifdef FMT_VERSION +template +struct fmt::formatter : formatter +{ + template + auto format(const REL::Version a_version, FormatContext& a_ctx) const + { + return formatter::format(a_version.string(), a_ctx); + } +}; +#endif