Skip to content

Commit 87d651f

Browse files
mizvekovalandefreitas
authored andcommitted
fix: replace uses of deprecated has_formatter
use is_formattable instead. has_formatter was never a good API, since it only asked if the type has a `formatter` specialization, but a type can also be formattable if it provides an implicit conversion to a type which does. The newer API takes care of the that problem.
1 parent 00b56e9 commit 87d651f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mrdocs/Support/Handlebars.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ 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
221+
requires fmt::is_formattable<T, fmt::format_context>::value
222222
friend
223223
OutputRef&
224224
operator<<( OutputRef& os, T v )

0 commit comments

Comments
 (0)