Compatibility with fmtlib 10.1.x

This commit is contained in:
Exzap 2023-10-02 18:52:54 +02:00
parent ff9d180154
commit 757d458161
8 changed files with 39 additions and 38 deletions

View file

@ -232,19 +232,3 @@ private:
const TType m_min_value;
const TType m_max_value;
};
template <typename TType>
struct fmt::formatter< ConfigValue<TType> > : formatter<TType> {
template <typename FormatContext>
auto format(const ConfigValue<TType>& v, FormatContext& ctx) {
return formatter<TType>::format(v.GetValue(), ctx);
}
};
template <typename TType>
struct fmt::formatter< ConfigValueBounds<TType> > : formatter<TType> {
template <typename FormatContext>
auto format(const ConfigValueBounds<TType>& v, FormatContext& ctx) {
return formatter<TType>::format(v.GetValue(), ctx);
}
};