15 Mar
2016
15 Mar
'16
1:13 a.m.
On 03/14/2016 08:57 PM, Glen Fernandes wrote:
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:
https://github.com/philippeb8/root_ptr/issues/1
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
Ok I'll do that tomorrow evening.