From d71cc6ab081434ba77feeecd75b4199ec90ac18a Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Sun, 24 Oct 2010 22:24:54 +0000 Subject: [PATCH] Merging from trunk [SVN r66166] --- 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 3ee934f..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 > {