Advertisement

problem with templates

Started by June 06, 2002 01:50 PM
9 comments, last by xjoshbx 22 years, 6 months ago
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).

This topic is closed to new replies.

Advertisement