diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-12 22:00:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-12 22:00:32 +0100 |
| commit | 8abfa9923e29ab1f3554d4e0784d8d420032a436 (patch) | |
| tree | e8f8bd17217fe32b4216c23c5be4f4d776434b2b /src/lib | |
| parent | 92e3bafcb82ac8c2ed6782cd1e6e6cf3703cd6ca (diff) | |
Add whar_t write() for Windows.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/compose.hpp | 8 |
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; |
