|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66091 - trunk/boost/detail
From: hartmut.kaiser_at_[hidden]
Date: 2010-10-19 09:33:00
Author: hkaiser
Date: 2010-10-19 09:33:00 EDT (Tue, 19 Oct 2010)
New Revision: 66091
URL: http://svn.boost.org/trac/boost/changeset/66091
Log:
Re-added sunpro specific initialization
Text files modified:
trunk/boost/detail/sp_typeinfo.hpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/boost/detail/sp_typeinfo.hpp
==============================================================================
--- trunk/boost/detail/sp_typeinfo.hpp (original)
+++ trunk/boost/detail/sp_typeinfo.hpp 2010-10-19 09:33:00 EDT (Tue, 19 Oct 2010)
@@ -74,7 +74,13 @@
}
};
+#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 >
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk