In-line run of subs_in_out so that it gets the environment more easily.
[libdcp.git] / src / raw_convert.cc
index 7d3d1a72002b49511ca439eef728674b213fa063..c806b45e62bcc2372f02986bf8ec858a1f0557e1 100644 (file)
@@ -190,7 +190,7 @@ dcp::raw_convert (wchar_t const * v, int, bool)
 
 template <>
 unsigned char
-dcp::raw_convert (std::string v, int precision, bool fixed)
+dcp::raw_convert(string v, int precision, bool fixed)
 {
        return locale_convert<unsigned char> (make_local (v), precision, fixed);
 }
@@ -198,7 +198,7 @@ dcp::raw_convert (std::string v, int precision, bool fixed)
 
 template <>
 unsigned short int
-dcp::raw_convert (std::string v, int precision, bool fixed)
+dcp::raw_convert(string v, int precision, bool fixed)
 {
        return locale_convert<unsigned short int> (make_local (v), precision, fixed);
 }
@@ -244,6 +244,14 @@ dcp::raw_convert (string v, int precision, bool fixed)
 }
 
 
+template <>
+int
+dcp::raw_convert(char* v, int precision, bool fixed)
+{
+       return locale_convert<int>(make_local (v), precision, fixed);
+}
+
+
 template <>
 int
 dcp::raw_convert (char const * v, int precision, bool fixed)