Re: OON: const and aliasing

From: Bruno Haible (haible@ilog.fr)
Date: Fri Mar 24 2000 - 07:53:37 EST


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