this pointer and anachronisms
Posted on 1998-05-07
Okay... first off let me say that I am not a C++ programmer by any means. We have some existing C++ code that has compiled for years using the SunSoft C++ compiler ( 1.x thru to 3.x ). The newest version of the compiler ( 4.x )
does not seem to like the c++ code. Okay now thats done... on to the question
When I go to compile the code I am constantly getting the following returned error message:
The left operand cannot be assigned to.
The line of code is mostly in the form ..... this = next
or something along that line.
This all refers to the 'this' pointer and the changes in the syntax of the language ( so I have been told ).
Basically, anachronism assignment to "this" isn't allowed in C++ 4.0 and C++ 4.0.1.
How do you correct such a problem????
I am unable to find anything regarding such a problem. Can someone please help.