Re: need a 2nd pair of eyes for c++ inheritance problem -
22-03-2004
I think PMB is correct with his assesment. Here's another way of looking at the problem.
There's really nothing mysterious about the error. You are simply trying to pass a CharCount type to the function Sort which is expecting Sortable as the type for table, and this is what is causing the type mismatch.
It's as if you are trying to pass an int when a float was expected.
I think you probably understand the basics of data typing, so you clearly have a big misunderstanding with how inheritence works.
If you can tell us what you thought the compiler would do with your code, then perhaps we'll see where your ideas of inheritance are incorrect.
Maker of the (mEAn) Bot.Admin Manager
"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
|