From da0f568852c0da62f76d86b91d77e358dc7e39ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20M=20L=C3=B3pez=20Mu=C3=B1oz?= Date: Sun, 12 Oct 2008 13:06:22 +0000 Subject: [PATCH] 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 [SVN r49289] --- include/boost/detail/allocator_utilities.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/detail/allocator_utilities.hpp b/include/boost/detail/allocator_utilities.hpp index 91b0fa7..6453af0 100644 --- a/include/boost/detail/allocator_utilities.hpp +++ b/include/boost/detail/allocator_utilities.hpp @@ -181,7 +181,13 @@ void construct(void* p,const Type& t) template void destroy(const Type* p) { + +#if BOOST_WORKAROUND(__SUNPRO_CC,BOOST_TESTED_AT(0x590)) + const_cast(p)->~Type(); +#else p->~Type(); +#endif + } } /* namespace boost::detail::allocator */