From 8abfa9923e29ab1f3554d4e0784d8d420032a436 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 12 Aug 2016 22:00:32 +0100 Subject: [PATCH] Add whar_t write() for Windows. --- src/lib/compose.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/compose.hpp b/src/lib/compose.hpp index 425aceabf..8ccd12b50 100644 --- a/src/lib/compose.hpp +++ b/src/lib/compose.hpp @@ -202,6 +202,14 @@ namespace StringPrivate s += obj; } + template <> + inline void write(std::string& s, wchar_t const & obj) + { + std::wstring ws (&obj); + std::string w (ws.begin(), ws.end()); + s += w; + } + template <> inline void write(std::string& s, const std::string& obj) { -- 2.30.2