From 825786d59a8e85ca065a01de1fce0f9e5ec0d29b Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Tue, 19 Oct 2010 13:33:00 +0000 Subject: [PATCH] Re-added sunpro specific initialization [SVN r66091] --- include/boost/detail/sp_typeinfo.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/detail/sp_typeinfo.hpp b/include/boost/detail/sp_typeinfo.hpp index c7bd549..43fae78 100644 --- a/include/boost/detail/sp_typeinfo.hpp +++ b/include/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 > {