Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions include/mrdocs/Support/Handlebars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,10 @@ class MRDOCS_DECL OutputRef
@return A reference to this object
*/
template <class T>
requires fmt::has_formatter<T, fmt::format_context>::value
friend
OutputRef&
operator<<( OutputRef& os, T v )
{
std::string s = fmt::format( "{}", v );
return os.write_impl( s );
requires fmt::is_formattable<T>::value
friend OutputRef &operator<<(OutputRef &os, T v) {
std::string s = fmt::format("{}", v);
return os.write_impl(s);
}

void
Expand Down
2 changes: 1 addition & 1 deletion src/test_suite/detail/decomposer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace test_suite::detail
out += '\"';
}
#ifdef MRDOCS_TEST_HAS_FMT
if constexpr (fmt::has_formatter<T, fmt::format_context>::value) {
if constexpr (fmt::is_formattable<T>::value) {
out += fmt::format("{}", value);
} else
#endif
Expand Down
Loading