Subject: Re: [boost] [Block Pointer][Container] Works - Take 2
From: Peter Dimov (lists_at_[hidden])
Date: 2016-03-05 05:30:03
Phil Bouchard wrote:
> - I removed the usage of an allocator. Now there is no need for any
> allocator anymore.
I'm not sure I see how this would work. If you have
the pointers in 'v' are root (unowned) pointers, but if you have
the pointers in v2 are owned by v2. Yet in both cases they are on the heap.
I thought that using
block_ptr<vector<block_ptr<T>, block_allocator<T>>> v2;
for the second case allows you to distinguish between the two.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk