Minor cleanup
This commit is contained in:
@@ -4000,8 +4000,7 @@ struct formatter<T, Char, enable_if_t<detail::has_format_as<T>::value>>
|
||||
template <typename FormatContext>
|
||||
auto format(const T& value, FormatContext& ctx) const -> decltype(ctx.out()) {
|
||||
using base = formatter<detail::format_as_t<T>, Char>;
|
||||
// format functions expect lvalue refs, not rvalues
|
||||
auto&& val = format_as(value);
|
||||
auto&& val = format_as(value); // Make an lvalue reference for format.
|
||||
return base::format(val, ctx);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user