Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49289 - trunk/boost/detail
From: joaquin_at_[hidden]
Date: 2008-10-12 09:06:23


Author: joaquin
Date: 2008-10-12 09:06:22 EDT (Sun, 12 Oct 2008)
New Revision: 49289
URL: http://svn.boost.org/trac/boost/changeset/49289

Log:
added workaround for http://bugs.sun.com/view_bug.do?bug_id=6757317 , also discussed at http://lists.boost.org/boost-users/2008/10/41154.php
Text files modified:
   trunk/boost/detail/allocator_utilities.hpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: trunk/boost/detail/allocator_utilities.hpp
==============================================================================
--- trunk/boost/detail/allocator_utilities.hpp (original)
+++ trunk/boost/detail/allocator_utilities.hpp 2008-10-12 09:06:22 EDT (Sun, 12 Oct 2008)
@@ -181,7 +181,13 @@
 template<typename Type>
 void destroy(const Type* p)
 {
+
+#if BOOST_WORKAROUND(__SUNPRO_CC,BOOST_TESTED_AT(0x590))
+ const_cast<Type*>(p)->~Type();
+#else
   p->~Type();
+#endif
+
 }
 
 } /* namespace boost::detail::allocator */


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