Boost logo

Boost :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2008-03-15 18:27:52


Eric Niebler wrote:

> Markus Werle wrote:
> [...]
>
>> Maybe even extend the example to an initialization action based
>> on operator new ...
>
> I don't follow.

Something along the line

double * d1, d2, d3, d4;
(make_expr(d1), d2, d3, d4).allocate_memory(200);

being equivalent to

double * d1 = new double[200];
double * d2 = new double[200];
etc. ...

Or use std::vector<double> as terminals and trigger a resize
for all terminals ...


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