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
218218 @return A reference to this object
219219 */
220220 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);
228225 }
229226
230227 void
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ namespace test_suite::detail
5353 out += ' \" ' ;
5454 }
5555#ifdef MRDOCS_TEST_HAS_FMT
56- if constexpr (fmt::has_formatter<T, fmt::format_context >::value) {
56+ if constexpr (fmt::is_formattable<T >::value) {
5757 out += fmt::format (" {}" , value);
5858 } else
5959#endif
You can’t perform that action at this time.
0 commit comments