DJ> TM> It's * const var which replaced by &var; it's not
DJ> TM> to modify the target of a reference.
DJ> ??? Since when? This program works just fine on my system:
Blame my English if my statement was incorrect.
What I meant is: the target of a reference cannot be replaced by
another target:
If I write
int i;
int &ir = i;
I declare ir to be a reference to i for its whole lifetime; I can't
have ir refer to some other target.
This is (module syntactical differences) the same thing as writing:
int i;
int * const ir; // constant pointer to non-const int
Thomas
---
þ MM 1.0 #0113 þ This tagline is subject to change without notice
---------------
* Origin: McMeier & Son BBS (2:301/138)
|