mirror of
https://github.com/boostorg/detail.git
synced 2025-07-31 21:04:27 +02:00
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]
This commit is contained in:
@@ -181,7 +181,13 @@ void construct(void* p,const Type& t)
|
||||
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 */
|
||||
|
Reference in New Issue
Block a user