I am trying to overload the -= operator which calls a remove_all function. The idea is when -= is used in a program of two LinkedLists that all the elements from the RHS LinkedList are removed from the LHS LinkedList
This means, i explain you by example.
let's say previous_ptr = 1;
Than according to your code, remove_ptr = 1;
previous_ptr->set(1);
You are doing one thing again and again..
sorry if i am wrong..