Boost logo

Boost :

Subject: Re: [boost] [shared_array] Why not in C++11 ?
From: Jens Weller (JensWeller_at_[hidden])
Date: 2013-07-05 19:28:54

> Gesendet: Samstag, 06. Juli 2013 um 00:49 Uhr
> Von: "Glen Fernandes" <glen.fernandes_at_[hidden]>
> An: boost_at_[hidden]
> 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:

Still, shared_array might offer the better interface...

kind regards,

Jens Weller

Boost list run by bdawes at, gregod at, cpdaniel at, john at