format: add unsigned char write method

unsigned char sometimes arises from string literals
This commit is contained in:
Danny Robson 2016-08-03 18:10:09 +10:00
parent f9fd156df8
commit c8d8067af2

View File

@ -630,6 +630,15 @@ namespace util { namespace format { namespace detail {
}
//-------------------------------------------------------------------------
template <typename OutputT>
OutputT
write (OutputT os, const specifier &spec, const unsigned char *t)
{
return write (os, spec, reinterpret_cast<const char*> (t));
}
//-------------------------------------------------------------------------
template <typename OutputT>
OutputT