The destructor has to be virtual:
Code:virtual ~CValue() { next->prev = prev; prev->next = next; numVals--; if(!numVals) first = last = prev = next = NULL; delete value; }
|
Results 1 to 17 of 17
Threaded View
|
Click Here to Expand Forum to Full Width |