[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop
Subject: Re: problem in extending QList (a template class)
From: August =?iso-8859-1?Q?H=F6randl?= <august.hoerandl () gmx ! at>
Date: 2002-03-03 17:40:55
[Download RAW message or body]
Dung Patrick wrote:
> =
> Hi,
> =
> I want to extend QList (say a class called Chain). QList itself is a te=
mplate class. So, what's the method to extend a template class? Thank you=
for advance.
this list is NOT a c++ list - it is used to discuss about the program
kdevelop
=
> Is the .h file like this:
> =
> #include <qlist.h>
> template<class Chain> class Chain : public QList {
^^^^^ ^^^^^
it is never a good idea to have two things with the same name
please get a good c++ book which learn about templates - or find a
c++ mailing list =
Gustl
-- =
\|/ \|/ \|/
August H=F6randl (o o) (- o) (o o) august.hoerandl@gmx.at
+---------------------(^)---(^)---(^)------------------------------
The 21st century... " U " ...is the Linux century
-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic