blob: b6b795174cb3825db39d03661365336947ea7ddb [file] [log] [blame]
diff -Nurp boost_1_45_0.orig/boost/smart_ptr/make_shared.hpp boost_1_45_0/boost/smart_ptr/make_shared.hpp
--- boost_1_45_0.orig/boost/smart_ptr/make_shared.hpp 2017-06-28 10:41:30.850524266 -0700
+++ boost_1_45_0/boost/smart_ptr/make_shared.hpp 2017-06-28 10:45:11.733596706 -0700
@@ -49,7 +49,16 @@ private:
{
if( initialized_ )
{
+#if defined( __GNUC__ )
+
+ T * p = reinterpret_cast< T* >( storage_.data_ );
+ p->~T();
+
+#else
+
reinterpret_cast< T* >( storage_.data_ )->~T();
+
+#endif
initialized_ = false;
}
}