Generic task:
I am assigned to store student information in a binary search tree.
I have a templated tree class, school class, and student class.
The school class inherits from the tree class. The student class is on its own.
Now, I want to encapsulate a student in a struct, and enter it into a tree.
Problem:
I want to use the student class as the template argument in the tree.
Ex: tree<student>
But technically I want to use a struct as the template arugment, not a class.
Question:
Is there someway I can incorporate a struct into the student class? I would need to use the struct globally so I don't see how to do this.
Please help, I am confused.