]> git.donarmstrong.com Git - rsem.git/blobdiff - boost/smart_ptr/detail/sp_convertible.hpp
Updated boost to v1.55.0
[rsem.git] / boost / smart_ptr / detail / sp_convertible.hpp
index eb39797b510ea7fa1f2e25dc54e0ba196657d2a6..31b262782594c79f33aea11f0437a261553015b5 100644 (file)
@@ -48,6 +48,21 @@ template< class Y, class T > struct sp_convertible
     enum _vt { value = sizeof( (f)( static_cast<Y*>(0) ) ) == sizeof(yes) };
 };
 
+template< class Y, class T > struct sp_convertible< Y, T[] >
+{
+    enum _vt { value = false };
+};
+
+template< class Y, class T > struct sp_convertible< Y[], T[] >
+{
+    enum _vt { value = sp_convertible< Y[1], T[1] >::value };
+};
+
+template< class Y, std::size_t N, class T > struct sp_convertible< Y[N], T[] >
+{
+    enum _vt { value = sp_convertible< Y[1], T[1] >::value };
+};
+
 struct sp_empty
 {
 };