
Gesendet: Samstag, 06. Juli 2013 um 00:49 Uhr Von: "Glen Fernandes" <glen.fernandes@gmail.com> An: boost@lists.boost.org Betreff: Re: [boost] [shared_array] Why not in C++11 ?
Does anyone know why 'boost::shared_array<>' was not made part of C++11, since pretty much all the other smart pointers were?
Even in Boost, as of 1.53.0, shared_ptr<T[]> is a better alternative than shared_array<T>. We just need to get Boost's shared_ptr<T[]> and shared_ptr<T[N]> to be part of the future standard (instead of adding shared_array to the future standard).
Actually its already supported, but you'll need a custom deleter: http://stackoverflow.com/questions/8624146/c11-standard-scoped-array-wrapper... Still, shared_array might offer the better interface... kind regards, Jens Weller