Dear Edric,
> for (ResultTable::iterator xIter=resultTable.begin(); xIter!=resultTable.end(); ) {
> if (!matchFound) {
> // Match was unsuccessfull
> // TODO:
> // Free memory allocated to this node
> delete(*xIter); // Compilation fails at this point
To me, it seems that here, the compiler assumes that you've used
a function named delete(), and not the operator ::delete().
Have you tried "delete (*xIter);"? (I mean letting at least one
space between "delete" and "(*xIter)".) It seems that this should
solve the problem.
Wishes,
--Hossein
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
|