I am trying to implement an iterator to a BST class, but I am having trouble with a private function of the iterator class which should have a struct as its argument - specifically, a struct defined in the BST class (called BSTNode).
Here's the declaration inside the iterator class, which I have declared as a friend of the BST class.