projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92e3baf
)
Add whar_t write() for Windows.
author
Carl Hetherington
<cth@carlh.net>
Fri, 12 Aug 2016 21:00:32 +0000
(22:00 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 12 Aug 2016 21:00:32 +0000
(22:00 +0100)
src/lib/compose.hpp
patch
|
blob
|
history
diff --git
a/src/lib/compose.hpp
b/src/lib/compose.hpp
index 425aceabf09725e135a867564c79cb3af810e5d2..8ccd12b503556c834760e1afcf636fb989cbb4f2 100644
(file)
--- 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)
{