View Single Post
Old Jan 16th, 2006, 6:53 PM   #3
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 852
Rep Power: 4 The Dark is on a distinguished road
As grumpy said, you are copying the const pointer to a non-const variable. Try changing your local pointers to const.
In list_sum, change
IntNode *current;
to
const IntNode *current;
The Dark is offline   Reply With Quote