summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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;