error in handling template classes

Talk about anything here...

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

error in handling template classes

Postby FatimaAsif » Sat Nov 10, 2012 1:34 am

i have following error
argument of type "Node<int> *" is incompatible with parameter of type "BinarySearchTree<int> *"

i have two classes a Bst and a Node i declaire root in BST as Node *root but gets error on line
bst->height(bst->root)
where bst is object of BST class
FatimaAsif
 
Posts: 1
Joined: Sat Nov 10, 2012 1:25 am

Re: error in handling template classes

Postby exomo » Sat Nov 10, 2012 2:44 am

Code?
Who needs a signature anyway.
User avatar
exomo
 
Posts: 867
Joined: Fri Sep 26, 2003 12:30 pm
Location: germany->baden


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron