add support for precision on arg on strings

master
Daniel Kolesa 2015-07-03 21:53:09 +01:00
parent 69b31e439c
commit 60bf265461
1 changed files with 1 additions and 0 deletions

View File

@ -303,6 +303,7 @@ namespace detail {
assert(false && "cannot format strings with the given spec");
return -1;
}
if (this->precision) n = this->precision;
octa::Ptrdiff r = n;
r += this->write_ws(writer, n, true);
writer.put_n(val, n);