diff --git a/include/flatbuffers/util.h b/include/flatbuffers/util.h index 71e1973f1..275747b72 100644 --- a/include/flatbuffers/util.h +++ b/include/flatbuffers/util.h @@ -130,6 +130,9 @@ template<> inline std::string NumToString(signed char t) { template<> inline std::string NumToString(unsigned char t) { return NumToString(static_cast(t)); } +template<> inline std::string NumToString(char t) { + return NumToString(static_cast(t)); +} #if defined(FLATBUFFERS_CPP98_STL) template<> inline std::string NumToString(long long t) { char buf[21]; // (log((1 << 63) - 1) / log(10)) + 2