Boost logo

Boost :

Subject: Re: [boost] RFC: A better shared_array
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-10-16 10:31:18

Olaf van der Spek wrote:
> Hi,
> The current shared_array doesn't keep track of size. This greatly
> decreases it's usefulness. So I wrote a variant that does:

One question you'll invariably get from people is why you don't store begin
into the shared_ptr, eliminating one pointer:

    shared_ptr<T> begin_;
    size_t size_;

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