problem in extending QList (a template class)

Dung Patrick dkt at digitalme.com
Sun Mar 3 14:17:11 GMT 2002


Hi,

I want to extend QList (say a class called Chain). QList itself is a template class. So, what's the method to extend a template class? Thank you for advance.


Is the .h file like this:

#include <qlist.h>
template<class Chain> class Chain : public QList {

public:

        Chain(); //constructor
        ~Chain(); //destructor
};


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list