I'm getting a core dump from the delete when using g++, but MS visual studio executes the code just fine. Any ideas on why this is happening with g++ or better yet how can I debug this. I use ddd/gdb but many of the variables are not being displayed during execution.
Thanks for any help.
template <typename T, int NODE_SIZE>
inline void unrolled_list<T,NODE_SIZE>::clear()
typename unrolled_list<T,NODE_SIZE>::node *n, *n_next;
for (n = _head->next; n != NULL; n = n_next)
n_next = n->next;
_head->count = 0;
_head->next = NULL;
_tail = _head;