In your helper function:
ostream& operator<<(ostream &output, const BSTree &other) {
output << outputHelper(&output, other.overallRoot);
return output;
}
It doesn't know what outputHelper is supposed to be.
You could attempt to call it with other.outputHelper(output, other.overallRoot); but outputHelper is private (as I suspect overallRoot is).
I would tend to provide a public method, something like DumpInorder(ostream & output) that would make the call to outputHelper(output, overallRoot). Then your helper function looks more like:
ostream& operator<<(ostream &output, const BSTree &other) {
other.DumpInorder(output);
return output;
}
Murtan
Practically a Master Poster
671 posts since May 2008
Reputation Points: 344
Solved Threads: 116