Boost logo

Boost :

From: rwgk (rwgk_at_[hidden])
Date: 2002-01-07 19:00:00


Thanks for your reply.

Could you please also address this question:

> Multi-dimensional arrays tend to be large (mega-bytes). On the other
> hand, the copy constructor and the assignment operator perform deep
> copies. Then, how would I code e.g. operator+()?
>
> marray operator+(const marray& lhs, const marray& rhs) {
> marray result;
> // do the addition
> return result; // deep copy???
> }

At the moment I have serious doubts about the usefulness
of a multi-dimensional array package that does not include
memory management with shared pointers of some kind (as
e.g. Blitz++ does). Am I missing something?

Thanks!
        Ralf


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