From d06637eac622c1bdcdc33bafa00d6427db54705e Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 10 Feb 2017 17:48:19 +0100 Subject: [PATCH] actually use write_bytes directly --- ostd/stream.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ostd/stream.hh b/ostd/stream.hh index 9a4d815..39e8d65 100644 --- a/ostd/stream.hh +++ b/ostd/stream.hh @@ -190,10 +190,10 @@ namespace detail { struct FmtStreamRange: OutputRange { FmtStreamRange(Stream &s): p_s(s) {} bool put(char c) { - return p_s.putchar(c); + return p_s.write_bytes(&c, 1) == 1; } size_t put_n(char const *p, size_t n) { - return p_s.put(p, n); + return p_s.write_bytes(p, n); } Stream &p_s; };