diff options
Diffstat (limited to 'src/raw_convert.cc')
| -rw-r--r-- | src/raw_convert.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/raw_convert.cc b/src/raw_convert.cc index 37c8215f..aed965ad 100644 --- a/src/raw_convert.cc +++ b/src/raw_convert.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2016 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -36,6 +36,7 @@ #include <boost/algorithm/string.hpp> using std::string; +using std::wstring; static string @@ -144,6 +145,14 @@ dcp::raw_convert (char v, int, bool) } template <> +string +dcp::raw_convert (wchar_t const * v, int, bool) +{ + wstring w (v); + return string (w.begin(), w.end()); +} + +template <> int dcp::raw_convert (string v, int precision, bool fixed) { |
