diff --git a/include/REL/Version.h b/include/REL/Version.h index 31fb4a29f..c5b396812 100644 --- a/include/REL/Version.h +++ b/include/REL/Version.h @@ -87,3 +87,15 @@ namespace REL [[nodiscard]] std::optional GetFileVersion(stl::zwstring a_filename); } + +#ifdef __cpp_lib_format +template +struct std::formatter : formatter +{ + template + constexpr auto format(const REL::Version a_version, FormatContext& a_ctx) const + { + return formatter::format(a_version.string(), a_ctx); + } +}; +#endif