Skip to content

Commit

Permalink
fix: Version formatter for fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed May 16, 2024
1 parent f7a2c83 commit 58863cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CommonLibF4/include/REL/Relocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,18 @@ struct std::formatter<REL::Version, CharT> : formatter<std::string, CharT>
}
};

#ifdef FMT_VERSION
template<class CharT>
struct fmt::formatter<REL::Version, CharT> : formatter<std::string, CharT>
{
template<class FormatContext>
auto format(const REL::Version& a_version, FormatContext& a_ctx)
{
return formatter<std::string, CharT>::format(a_version.string(), a_ctx);
}
};
#endif

#undef REL_MAKE_MEMBER_FUNCTION_NON_POD_TYPE
#undef REL_MAKE_MEMBER_FUNCTION_NON_POD_TYPE_HELPER
#undef REL_MAKE_MEMBER_FUNCTION_NON_POD_TYPE_HELPER_IMPL
Expand Down

0 comments on commit 58863cb

Please sign in to comment.