Just a guess here, but on line 11, try it this way?
void insert(const generic& x);
You would want to change it in line two of your function definition as well:
void BST<generic>::insert(const generic& x) {
Last edited on
I can't change the functions. When my teacher grades it won't work the way he test it if I change them.
Just guessing as well, but I think:
m_data -> data = x
should be
*(m_data->data) = x;
You need to point to the address of
x like this:
Last edited on
@Framework: That would be bad. You'd be storing the address of a temporary. That will only lead to pain and disappointment.