quote: Original post by xjoshbx
The only problem is, I have no idea why that works.
Your NODE class/struct is private to the BinaryTree class and as such is undefined in the global (or outer) namespace. Since I''m not in the mood for a full discussion of namespaces and scope, look ''em up. Anyway, to successfully introduce NODE into the relative global namespace, it must be fully qualified (prefixed by the containing structure identifier).