Be more cautious in CertificateChain::private_key_valid.
[libdcp.git] / src / raw_convert.h
index 585c18fc2910717b4d85e9aecbcf3d8010caf88f..4945c7f8bcc3f2f69f7d8ab88b2086579894804d 100644 (file)
@@ -36,7 +36,6 @@
 
 #include <boost/static_assert.hpp>
 #include <iomanip>
-#include <stdint.h>
 
 namespace dcp {
 
@@ -53,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);
@@ -63,11 +70,19 @@ raw_convert (unsigned int v, int, bool);
 
 template <>
 std::string
-raw_convert (int64_t v, int, bool);
+raw_convert (long v, int, bool);
 
 template <>
 std::string
-raw_convert (uint64_t v, int, bool);
+raw_convert (unsigned long v, int, bool);
+
+template <>
+std::string
+raw_convert (long long v, int, bool);
+
+template <>
+std::string
+raw_convert (unsigned long long v, int, bool);
 
 template <>
 std::string
@@ -89,10 +104,34 @@ template <>
 std::string
 raw_convert (std::string v, int, bool);
 
+template <>
+std::string
+raw_convert (wchar_t const * v, int, bool);
+
+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);
 
+template <>
+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);