adkt
9/17/2014 - 10:00 PM

Using reference notation on the LHS creates alias'

Using reference notation on the LHS creates alias'

int *&myAlias = test;
myAlias++;
cout << *myAlias << endl;

int myinter = 99;
int &myAlias2 = myinter;
myAlias2++;
cout << myAlias2 << " = " << myinter << endl;