summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-15 11:33:15 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-15 11:33:15 +0100
commit5e863b516aeaece822daedf5417522f97ffa7fce (patch)
treef2c2e5fc8037c522d8f54ec63505034f86d716aa /src
parent40d7f166359ce2c7770b86fdd505443126982d36 (diff)
Hack.
Diffstat (limited to 'src')
-rw-r--r--src/compose.hpp16
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];