Reduce usage of type_identity

This commit is contained in:
Victor Zverovich
2024-09-04 16:23:51 -07:00
parent c3344e21e2
commit 106dc8fd64
3 changed files with 13 additions and 14 deletions
+2 -2
View File
@@ -161,10 +161,10 @@ inline void vprint_directly(std::ostream& os, string_view format_str,
FMT_EXPORT template <typename Char>
void vprint(std::basic_ostream<Char>& os,
basic_string_view<type_identity_t<Char>> format_str,
basic_string_view<type_identity_t<Char>> fmt,
typename detail::vformat_args<Char>::type args) {
auto buffer = basic_memory_buffer<Char>();
detail::vformat_to(buffer, format_str, args);
detail::vformat_to(buffer, fmt, args);
if (detail::write_ostream_unicode(os, {buffer.data(), buffer.size()})) return;
detail::write_buffer(os, buffer);
}