summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-15 11:20:32 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-15 11:20:32 +0100
commitee4d5a767b59baa4e8aefba2214fde0abe7b30b9 (patch)
treea3a215dbe4ffb053136b2e3397360f505c166e99 /src
parent6807378177adede49eb7b992df3af79e8346cec9 (diff)
Hack.
Diffstat (limited to 'src')
-rw-r--r--src/compose.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compose.hpp b/src/compose.hpp
index 3ea21d74..e99da8ee 100644
--- a/src/compose.hpp
+++ b/src/compose.hpp
@@ -161,6 +161,14 @@ namespace StringPrivate
}
template <>
+ inline void write(std::string& s, const unsigned long int& obj)
+ {
+ char buffer[64];
+ snprintf(buffer, 64, "%uld", obj);
+ s += buffer;
+ }
+
+ template <>
inline void write(std::string& s, const float& obj)
{
char buffer[64];