Re: need a 2nd pair of eyes for c++ inheritance problem -
30-03-2004
Sorry for takin so long to repost. The problem is that you cannot convert a type that is a pointers to pointers to another pointer to pointer type (CharCount ** cannot be converted to a Sortable**). It turs out its simply a rule of the language. I did find a solution by using templates. This is how it ended up looking.
template <typename T>
inline void QuickSort(T **objects, int size) {
// QSort(objects, 0, size - 1); // the recursive quick sort funtcion
}
|