Ticket #2662: make_shared_optimization.patch

File make_shared_optimization.patch, 511 bytes (added by Frank Mori Hess, 14 years ago)
  • boost/make_shared.hpp

     
    6060    {
    6161    }
    6262
     63    // this copy constructor is an optimization: we don't need to copy the storage_ member,
     64    // and shouldn't be copying anyways after initialized_ becomes true
     65    sp_ms_deleter(const sp_ms_deleter &other): initialized_( false )
     66    {}
     67
    6368    ~sp_ms_deleter()
    6469    {
    6570        destroy();