From c8d8067af238616deead039c45fdedc49a569baa Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 3 Aug 2016 18:10:09 +1000 Subject: [PATCH] format: add unsigned char write method unsigned char sometimes arises from string literals --- format.ipp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/format.ipp b/format.ipp index d375282b..fa5cbbb4 100644 --- a/format.ipp +++ b/format.ipp @@ -630,6 +630,15 @@ namespace util { namespace format { namespace detail { } + //------------------------------------------------------------------------- + template + OutputT + write (OutputT os, const specifier &spec, const unsigned char *t) + { + return write (os, spec, reinterpret_cast (t)); + } + + //------------------------------------------------------------------------- template OutputT