Boost logo

Boost :

Subject: Re: [boost] [Root Pointer] Benchmark
From: Glen Fernandes (glen.fernandes_at_[hidden])
Date: 2016-03-14 20:57:50

On Mon, Mar 14, 2016 at 8:43 PM, Phil Bouchard wrote:
> No I just scribbled something quickly but I need to clean up node_base.hpp
> and make nodealloc<> generic.

Understood. Given that: I've updated the example code to be slightly
less trivial:

After you have updated/cleaned up the code as you've specified, the
only changes involved should be:

    1. shared_ptr<U> becomes root_ptr<U>
    2. allocate_shared<U>(Allocator<U>(x, y), p, q) becomes <something>

That <something> should ideally be a single expression where you can
specify both:

    a. Allocator<U> instance
    b. U constructor arguments


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