Boost logo

Boost :

Subject: Re: [boost] [Root Pointer] Deterministic C++ memory manager (update)
From: Phil Bouchard (philippeb8_at_[hidden])
Date: 2018-01-26 01:27:17


On 01/25/2018 04:04 PM, Phil Bouchard via Boost wrote:
> On 12/24/2017 05:29 PM, Phil Bouchard via Boost wrote:
>>
>> Here is yet another important update:
>> https://github.com/philippeb8/root_ptr/tree/master/include/boost/smart_ptr
>>
>>
>> I've been testing Fornux C Leak Detector (modified Clang which uses
>> Root.Ptr) with a modified libarchive 3.2.2:
>> https://github.com/philippeb8/libarchive/commit/5858b5c047301123ffdf05f247f7d191829d5a9b
>
>
> For the starters, I've updated the simple example (I will have to update
> downcasting again):
> https://github.com/philippeb8/root_ptr/blob/master/example/root_ptr_example1.cpp

Ok downcasting is fine now and it can be used as such:

cout << "Downcasting:" << endl;
{
     node_proxy x;
     node_ptr<C> p = dynamic_pointer_cast<C>(make_node<B>(x));
     cout << p.get() << endl;
}
cout << endl;

Sincerely,
Phil Bouchard
www.fornux.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk