This formatter specialization with base::format means a class implicitly convertible to std::string_view will now be converted by this format function before being passed to the fmt::string_view format function.
This wouldn't work previously as the compiler may only perform one implicit conversion, and we need 2 here (from our type, to std::string_view, to fmt::string_view).
Fixes #4036
This formatter specialization with
base::format
means a class implicitly convertible tostd::string_view
will now be converted by this format function before being passed to thefmt::string_view
format function. This wouldn't work previously as the compiler may only perform one implicit conversion, and we need 2 here (from our type, tostd::string_view
, tofmt::string_view
).