Thread
:
invalid conversion from `const IntNode*' to `IntNode*'
View Single Post
Jan 16th, 2006, 6:53 PM
#
3
The Dark
Expert Programmer
Join Date: Jun 2005
Posts: 852
Rep Power:
4
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
(
Toggle Plain Text
)
IntNode *current;
IntNode *current;
to
(
Toggle Plain Text
)
const IntNode *current;
const IntNode *current;
The Dark
View Public Profile
Find More Posts by The Dark