From 60bf265461cbb8b10fc3565554b37f13080c0109 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 3 Jul 2015 21:53:09 +0100 Subject: [PATCH] add support for precision on arg on strings --- octa/format.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/octa/format.hh b/octa/format.hh index ba4f411..871a1c8 100644 --- a/octa/format.hh +++ b/octa/format.hh @@ -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);