From ee4d5a767b59baa4e8aefba2214fde0abe7b30b9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Aug 2016 11:20:32 +0100 Subject: Hack. --- src/compose.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/compose.hpp') diff --git a/src/compose.hpp b/src/compose.hpp index 3ea21d74..e99da8ee 100644 --- a/src/compose.hpp +++ b/src/compose.hpp @@ -160,6 +160,14 @@ namespace StringPrivate s += buffer; } + 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) { -- cgit v1.2.3