summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-12 22:00:32 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-12 22:00:32 +0100
commit8abfa9923e29ab1f3554d4e0784d8d420032a436 (patch)
treee8f8bd17217fe32b4216c23c5be4f4d776434b2b /src
parent92e3bafcb82ac8c2ed6782cd1e6e6cf3703cd6ca (diff)
Add whar_t write() for Windows.
Diffstat (limited to 'src')
-rw-r--r--src/lib/compose.hpp8
1 files changed, 8 insertions, 0 deletions
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
@@ -203,6 +203,14 @@ namespace StringPrivate
}
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)
{
s += obj;