Is it possible to pass a member variable as the default argument to a function of the same class? I want to reverse a linked list using recursion, but I need to pass the head of the linked list the first time that the function is called.
Something like this but that actually compiles:
Code:class Linked_List { private: Tree_Node *head; public: void reverse(Tree_Node *next = head); };