Fix the returned value of format_to_n with user-defined types having operator<<.
This commit is contained in:
committed by
Victor Zverovich
parent
9c32e73abf
commit
2a4cd6d05e
@@ -124,8 +124,7 @@ struct formatter<T, Char,
|
||||
basic_memory_buffer<Char> buffer;
|
||||
internal::format_value(buffer, value);
|
||||
basic_string_view<Char> str(buffer.data(), buffer.size());
|
||||
formatter<basic_string_view<Char>, Char>::format(str, ctx);
|
||||
return ctx.out();
|
||||
return formatter<basic_string_view<Char>, Char>::format(str, ctx);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user