13ff7e
diff -up boost_1_53_0/boost/lexical_cast.hpp\~ boost_1_53_0/boost/lexical_cast.hpp
13ff7e
--- /boost_1_53_0/boost/lexical_cast.hpp~	2014-09-15 15:36:36.915684568 +0200
13ff7e
+++ /boost_1_53_0/boost/lexical_cast.hpp	2014-09-15 15:43:54.086756641 +0200
13ff7e
@@ -2404,16 +2404,57 @@ namespace boost {
13ff7e
         return caster_type::lexical_cast_impl(arg);
13ff7e
     }
13ff7e
 
13ff7e
-    template <typename Target, typename CharType>
13ff7e
-    inline Target lexical_cast(const CharType* chars, std::size_t count)
13ff7e
+    template <typename Target>
13ff7e
+    inline Target lexical_cast(const char* chars, std::size_t count)
13ff7e
+     {
13ff7e
+        return ::boost::lexical_cast<Target>(
13ff7e
+            ::boost::iterator_range<const char*>(chars, chars + count)
13ff7e
+        );
13ff7e
+    }
13ff7e
+
13ff7e
+    template <typename Target>
13ff7e
+    inline Target lexical_cast(const unsigned char* chars, std::size_t count)
13ff7e
     {
13ff7e
-        BOOST_STATIC_ASSERT_MSG(boost::detail::is_char_or_wchar<CharType>::value, 
13ff7e
-            "CharType must be a character or wide character type");
13ff7e
+         return ::boost::lexical_cast<Target>(
13ff7e
+            ::boost::iterator_range<const unsigned char*>(chars, chars + count)
13ff7e
+         );
13ff7e
+     }
13ff7e
 
13ff7e
-        return boost::lexical_cast<Target>(
13ff7e
-            boost::iterator_range<const CharType*>(chars, chars + count)
13ff7e
+    template <typename Target>
13ff7e
+    inline Target lexical_cast(const signed char* chars, std::size_t count)
13ff7e
+    {
13ff7e
+        return ::boost::lexical_cast<Target>(
13ff7e
+            ::boost::iterator_range<const signed char*>(chars, chars + count)
13ff7e
+        );
13ff7e
+    }
13ff7e
+
13ff7e
+#ifndef BOOST_LCAST_NO_WCHAR_T
13ff7e
+    template <typename Target>
13ff7e
+    inline Target lexical_cast(const wchar_t* chars, std::size_t count)
13ff7e
+    {
13ff7e
+        return ::boost::lexical_cast<Target>(
13ff7e
+            ::boost::iterator_range<const wchar_t*>(chars, chars + count)
13ff7e
         );
13ff7e
     }
13ff7e
+#endif
13ff7e
+#ifndef BOOST_NO_CHAR16_T
13ff7e
+    template <typename Target>
13ff7e
+    inline Target lexical_cast(const char16_t* chars, std::size_t count)
13ff7e
+    {
13ff7e
+        return ::boost::lexical_cast<Target>(
13ff7e
+            ::boost::iterator_range<const char16_t*>(chars, chars + count)
13ff7e
+        );
13ff7e
+    }
13ff7e
+#endif
13ff7e
+#ifndef BOOST_NO_CHAR32_T
13ff7e
+    template <typename Target>
13ff7e
+    inline Target lexical_cast(const char32_t* chars, std::size_t count)
13ff7e
+    {
13ff7e
+        return ::boost::lexical_cast<Target>(
13ff7e
+            ::boost::iterator_range<const char32_t*>(chars, chars + count)
13ff7e
+        );
13ff7e
+    }
13ff7e
+#endif
13ff7e
 
13ff7e
 } // namespace boost
13ff7e