Todd Veldhuizen writes:
> Answer: const Vector& acts as if it is:
>
> class Vector {
> public:
> double const* z; // Cannot change z
> };
Small little typo: it acts as if it were:
class Vector {
public:
double * const z; // Cannot change z
};
Bruno
--------------------- Object Oriented Numerics List --------------------------
* To subscribe/unsubscribe: use the handy web form at
http://oonumerics.org/oon/
* If this doesn't work, please send a note to owner-oon-list@oonumerics.org
This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 03:20:11 EST