X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=boost%2Fdetail%2Fsp_typeinfo.hpp;h=43fae78ef1b0995d5825f410ff5b6852d9b2f247;hp=3ee934f6a57b1ec0d2b9bd4dd5cbb6bff0d5dfaa;hb=2d71eb92104693ca9baa5a2e1c23eeca776d8fd3;hpb=da57529b92adbb7ae74a89861cb39fb35ac7c62d diff --git a/boost/detail/sp_typeinfo.hpp b/boost/detail/sp_typeinfo.hpp index 3ee934f..43fae78 100644 --- a/boost/detail/sp_typeinfo.hpp +++ b/boost/detail/sp_typeinfo.hpp @@ -74,7 +74,13 @@ template 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 sp_typeinfo sp_typeid_< T >::ti_ = sp_typeid_< T >::name(); +#else +template sp_typeinfo sp_typeid_< T >::ti_(sp_typeid_< T >::name()); +#endif template struct sp_typeid_< T & >: sp_typeid_< T > {