Hoo-my. Doesn't look like it likes that, huh? You're going to have to remove the const from setNext to make it work.
Haha... didn't think of that. Of course, if it assigns the variable to the class member function which isn't const, of course the set function can't take a const pointer since the class can modify it later.
Yes, that's my thoughts too - and I made the same mistake. I just want to have the line of the error clarified.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.