Merge [69251] to release. Fixes #4127.

[SVN r70439]
This commit is contained in:
Peter Dimov
2011-03-22 23:45:59 +00:00
parent cf7b6904e8
commit 210288f02e

View File

@ -49,7 +49,18 @@ private:
{
if( initialized_ )
{
#if defined( __GNUC__ )
// fixes incorrect aliasing warning
T * p = reinterpret_cast< T* >( storage_.data_ );
p->~T();
#else
reinterpret_cast< T* >( storage_.data_ )->~T();
#endif
initialized_ = false;
}
}