File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -218,13 +218,10 @@ class MRDOCS_DECL OutputRef
218
218
@return A reference to this object
219
219
*/
220
220
template <class T >
221
- requires fmt::has_formatter<T, fmt::format_context>::value
222
- friend
223
- OutputRef&
224
- operator <<( OutputRef& os, T v )
225
- {
226
- std::string s = fmt::format ( " {}" , v );
227
- return os.write_impl ( s );
221
+ requires fmt::is_formattable<T>::value
222
+ friend OutputRef &operator <<(OutputRef &os, T v) {
223
+ std::string s = fmt::format (" {}" , v);
224
+ return os.write_impl (s);
228
225
}
229
226
230
227
void
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ namespace test_suite::detail
53
53
out += ' \" ' ;
54
54
}
55
55
#ifdef MRDOCS_TEST_HAS_FMT
56
- if constexpr (fmt::has_formatter<T, fmt::format_context >::value) {
56
+ if constexpr (fmt::is_formattable<T >::value) {
57
57
out += fmt::format (" {}" , value);
58
58
} else
59
59
#endif
You can’t perform that action at this time.
0 commit comments