31c4ac62db
Change-Id: Id99429366485924ff35da63ebde1b5df11419d58
21 lines
477 B
Diff
21 lines
477 B
Diff
--- misc/boost_1_44_0/boost/smart_ptr/make_shared.hpp
|
|
+++ misc/build/boost_1_44_0/boost/smart_ptr/make_shared.hpp
|
|
@@ -49,7 +49,18 @@
|
|
{
|
|
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;
|
|
}
|
|
}
|