blob: b3e355dd3b9be2f49dab20ba72df0a2d868dfba2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- misc/boost_1_44_0/boost/smart_ptr/make_shared.hpp (revision 69250)
+++ misc/build/boost_1_44_0/boost/smart_ptr/make_shared.hpp (revision 69251)
@@ -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;
}
}
|