Is it possible to make a local copy of 'this' pointer in a class function? The purpose is to then modify the copy and return it, without modifying 'this' itself.
The function looks like this:
classA classA::function() {
classA newObject = //where I need help;
//modification of newObject
return newObject;
}