From 98fb0e3e2e71cb9ac0132e819ce0b3f60002971c Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 26 Feb 2017 00:32:35 +0100 Subject: [PATCH] fix escaping for default range print --- ostd/format.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ostd/format.hh b/ostd/format.hh index 4bfcae1..58e475a 100644 --- a/ostd/format.hh +++ b/ostd/format.hh @@ -683,7 +683,8 @@ private: } writer.put('{'); write_range_val(writer, [&writer, escape](auto const &rval) { - format_spec{'s', escape}.write_arg(writer, 0, rval); + format_spec sp{'s', escape ? FMT_FLAG_AT : 0}; + sp.write_arg(writer, 0, rval); }, ", ", val); writer.put('}'); return;