Im writing a program that is printing out binary search trees and binary trees.
Im getting a weird error involving the deconstructor of one of my ,h files.
F:\373\BSTree.h In destructor `BSTree<ItemType>::~BSTree() [with ItemType = int]':
9 F:\373\tree.cpp instantiated from here
9 F:\373\tree.cpp in lookup_member, at cp/search.c:1288
It looks like you didn't paste the whole error, can you repost the error message in full?
I don't see anything immediatley wrong... only thing I notice is that you're explicitly calling BTree's dtor from BSTree's dtor (which is not necessary/recommended)
That can't be right.... then why does it say 'lookup_member'?
I don't know. I can't really help with this one. The error doesn't tell me anything about the error and there's no way I can see for myself what's going on unless I can try to compile it, but this is too large to compile from a forum post.
I just looked over this, and I have to say, I am with Disch here. That doesn't look like any error I've ever seen, considering it lacks information about what the actual error is. :P I don't even see lookup_member in your code at all.
its alright,actually i just figured it out.it was in fact calling the bt destructor with the bst destructor,it was causing me grief. thanks for the help anyway though.