Ticket #8689: make_shared_const.patch

File make_shared_const.patch, 573 bytes (added by matthew.bergin@…, 9 years ago)
  • boost/smart_ptr/make_shared.hpp

    old new  
    1616#include <boost/smart_ptr/shared_ptr.hpp>
    1717#include <boost/type_traits/type_with_alignment.hpp>
    1818#include <boost/type_traits/alignment_of.hpp>
     19#include <boost/type_traits/remove_const.hpp>
    1920#include <cstddef>
    2021#include <new>
    2122
     
    5758
    5859#else
    5960
    60             reinterpret_cast< T* >( storage_.data_ )->~T();
     61            reinterpret_cast< boost::remove_const<T>::type* >( storage_.data_ )->~T();
    6162
    6263#endif
    6364