]> git.donarmstrong.com Git - rsem.git/blobdiff - boost/detail/sp_typeinfo.hpp
Updated boost to v1.55.0
[rsem.git] / boost / detail / sp_typeinfo.hpp
index 3ee934f6a57b1ec0d2b9bd4dd5cbb6bff0d5dfaa..43fae78ef1b0995d5825f410ff5b6852d9b2f247 100644 (file)
@@ -74,7 +74,13 @@ template<class T> struct sp_typeid_
     }
 };
 
+#if defined(__SUNPRO_CC)
+// see #4199, the Sun Studio compiler gets confused about static initialization 
+// constructor arguments. But an assignment works just fine. 
 template<class T> sp_typeinfo sp_typeid_< T >::ti_ = sp_typeid_< T >::name();
+#else
+template<class T> sp_typeinfo sp_typeid_< T >::ti_(sp_typeid_< T >::name());
+#endif
 
 template<class T> struct sp_typeid_< T & >: sp_typeid_< T >
 {