fix typo which caused the loss of the counting information when using a printf context with a truncating_iterator

This commit is contained in:
rimathia authored and Victor Zverovich committed 2020-06-05 07:37:54 -07:00
1 parent 21409cfdda
commit 95c6ac0cc8
2 files changed
+22 -3

No files matched your search

+2 -3
View File
@@ -206,8 +206,7 @@ template <typename OutputIt, typename Char> class basic_printf_context;
\endrst
*/
template <typename OutputIt, typename Char>
class printf_arg_formatter
: public detail::arg_formatter_base<OutputIt, Char> {
class printf_arg_formatter : public detail::arg_formatter_base<OutputIt, Char> {
public:
using iterator = OutputIt;
@@ -592,7 +591,7 @@ OutputIt basic_printf_context<OutputIt, Char>::format() {
start = it;
// Format argument.
visit_format_arg(ArgFormatter(out, specs, *this), arg);
out = visit_format_arg(ArgFormatter(out, specs, *this), arg);
}
return std::copy(start, it, out);
}