|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-22 08:11:14
----- Original Message -----
From: <nbecker_at_[hidden]>
> 1) I completely agree that the design of complex, which disallows
> direct access to real and imag, is a mistake. real() and imag()
> should return a ref.
Real numericists need much more than that. They need layout identical to
that of a POD struct for C/Fortran interoperability:
template <class T> struct complex_layout {
T real;
T imag;
};
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk