|
Boost : |
Subject: Re: [boost] [Block.Pointer][Container] List node allocator
From: Phil Bouchard (philippeb8_at_[hidden])
Date: 2016-03-02 18:05:01
On 03/01/2016 10:40 PM, Phil Bouchard wrote:
> On 03/01/2016 06:20 PM, Phil Bouchard wrote:
>> On 03/01/2016 04:27 PM, Ion Gaztañaga wrote:
>>>
>>> Supporting embedded end pointers is not only an option, but the choice
>>> of most STL implementations. It makes default constructors nothrow and
>>> improves performance. Any smart pointer should support pointing to those
>>> end nodes or it's just broken for STL-like containers.
>>
>> You're right. I think there's a way for block_ptr<> to support weak
>> references and I will get rid of the strange pointer-on-the-heap
>> initialization optimization at the same time.
>
> I just added support for weak references but I still have problems with
> Boost containers:
> https://github.com/philippeb8/block_ptr/blob/master/example/block_ptr_test2.cpp#L86
Ok now everything works!!
https://github.com/philippeb8/block_ptr/blob/master/example/block_ptr_test2.cpp#L85
So now block_ptr<> is Boost.Container compliant!
I still need to fix an issue but it's moving forward!
Thanks,
-Phil
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk