diff options
| -rw-r--r-- | src/compose.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/compose.hpp b/src/compose.hpp index 3ea21d74..ec016e97 100644 --- a/src/compose.hpp +++ b/src/compose.hpp @@ -161,6 +161,22 @@ namespace StringPrivate } template <> + inline void write(std::string& s, const int16_t& obj) + { + char buffer[64]; + snprintf(buffer, 64, "%" PRId16, obj); + s += buffer; + } + + template <> + inline void write(std::string& s, const uint16_t& obj) + { + char buffer[64]; + snprintf(buffer, 64, "%d" PRIu16, obj); + s += buffer; + } + + template <> inline void write(std::string& s, const float& obj) { char buffer[64]; |
