Skip to content

Commit

Permalink
fix: use std::formattable only when fmtlib is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Apr 19, 2024
1 parent 17de6bd commit 7249144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/include/mp-units/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class MP_UNITS_STD_FMT::formatter<U, Char> {
// subentity-id ::= 'N' | 'U' | 'D'
// format-spec ::= <as specified by the formatter for the argument type>
//
#if __cpp_lib_format_ranges
#if __cpp_lib_format_ranges && !MP_UNITS_USE_FMTLIB
template<auto Reference, typename Char, std::formattable<Char> Rep>
#else
template<auto Reference, typename Rep, typename Char>
Expand Down

0 comments on commit 7249144

Please sign in to comment.