Add another type to raw/locale convert.
[libdcp.git] / src / raw_convert.h
index 8ce5220e0ae52b5fb4f379e4170bf8116634125a..c7b04823732ed342c1f80eaf8ed0cbf5871b8bc8 100644 (file)
@@ -52,6 +52,14 @@ raw_convert (Q v, int precision = 16, bool fixed = false)
        BOOST_STATIC_ASSERT (sizeof (Q) == 0);
 }
 
+template <>
+std::string
+raw_convert (unsigned char v, int, bool);
+
+template <>
+std::string
+raw_convert (unsigned short int v, int, bool);
+
 template <>
 std::string
 raw_convert (int v, int, bool);
@@ -104,6 +112,14 @@ template <>
 std::string
 raw_convert (char v, int, bool);
 
+template <>
+unsigned char
+raw_convert (std::string v, int, bool);
+
+template <>
+unsigned short int
+raw_convert (std::string v, int, bool);
+
 template <>
 int
 raw_convert (std::string v, int, bool);
@@ -112,6 +128,14 @@ template <>
 long
 raw_convert (std::string v, int, bool);
 
+template <>
+unsigned long
+raw_convert (std::string v, int, bool);
+
+template <>
+long long
+raw_convert (std::string v, int, bool);
+
 template <>
 int
 raw_convert (char const * v, int, bool);