hi guys I recently asked a question about overloading the post and pre fix incremental operators with enums but now I am trying to implement a way to get the current node of a linked list but I get an error when trying to overload,the syntax looks correct to me,
but this is what the compiler throws at me
C:\Users\User\doublyLinkedList\main.cpp|78|error: declaration of 'operator++' as non-function|
sorry guys I had the ampersand in the wrong place should,stupid mistake
but I am still having a problem it is telling me that I need an int in the arguments to verload the postfix operator but the thing is I am not trying to overload the postfix operator I am trying the pre fix operator
I need an int in the arguments to verload the postfix operator but the thing is I am not trying to overload the postfix operator I am trying the pre fix operator