Sorry to post so often but I've never really worked with templated friend classes so I'm not sure if I'm doing something wrong or not. According to all the sources I have on hand, the syntax is correct but the compiler's still throwing errors. Anyway, the problem occurs in the remove function of a binary search tree
The class treenode<T>* is the node of a binary search tree and the class MyBSTree<T> contains a pointer to a treenode<T> for the root of the tree. The compiler is throwing the following errors
1 2 3 4
MyBSTree.h:36:17: error: variable or field ˜removeT" declared void
MyBSTree.h:36:17: error: expected ˜;" at end of member declaration
MyBSTree.h:36:24: error: expected unqualified-id before ˜<" token
as well as a few others. But I'm relatively sure that they all stem from these three or even one of these three. I'm not sure what's going on. Any suggestions?