Boost logo

Boost :

Subject: Re: [boost] [Root Pointer] Ultimate test - Neural Network
From: Phil Bouchard (philippeb8_at_[hidden])
Date: 2016-03-19 17:43:53


On 03/19/2016 03:22 PM, Phil Bouchard wrote:
> On 03/19/2016 01:53 PM, Phil Bouchard wrote:
>>
>> return node_ptr<neuron_base>(x_, new node<neuron_base>(* this)); //<
>> *** Copy of *this
>
> It is always possible to create a new helper function:
>
> make_node_from_this(x_, * this);

Actually just using:

return make_node<neuron_base>(x_, * this);

Is okay.


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