Ticket #8689: make_shared_const.patch
File make_shared_const.patch, 573 bytes (added by , 9 years ago) |
---|
-
boost/smart_ptr/make_shared.hpp
old new 16 16 #include <boost/smart_ptr/shared_ptr.hpp> 17 17 #include <boost/type_traits/type_with_alignment.hpp> 18 18 #include <boost/type_traits/alignment_of.hpp> 19 #include <boost/type_traits/remove_const.hpp> 19 20 #include <cstddef> 20 21 #include <new> 21 22 … … 57 58 58 59 #else 59 60 60 reinterpret_cast< T* >( storage_.data_ )->~T();61 reinterpret_cast< boost::remove_const<T>::type* >( storage_.data_ )->~T(); 61 62 62 63 #endif 63 64