Compiler Error C2532

'identifier' : illegal modifier for reference

The specified reference was changed.

References cannot be modified to refer to another object.

If the reference must be modified, then it should be implemented as a pointer instead.