| delorie.com/archives/browse.cgi | search |
| From: | Gruber Gerhard <g DOT gruber AT sis DOT co DOT at> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: problem with list class |
| Date: | Mon, 02 Feb 1998 10:03:48 +0100 |
| Organization: | APAnet |
| Lines: | 25 |
| Message-ID: | <34D58BF4.C3541BB9@sis.co.at> |
| References: | <34D1ADCD DOT 5CBB9988 AT sis DOT co DOT at> <34D20436 DOT 7DA5 AT cornell DOT edu> |
| NNTP-Posting-Host: | 192.56.14.75 |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
A. Sinan Unur wrote:
>
> Gruber Gerhard wrote:
>
> > #include <list.h>
> >
> > /* typedef class list CList; */
> >
> > class CWindow : public list {
> > protected:
> > int x, y;
>
> if you actually looked at list.h, you would see that list is a template.
I know! Now I understand templates, because I thought that templates
could be used, just like classes.
--
Bye,
Gerhard
email: gruber2 AT ibm DOT net
g DOT gruber AT sis DOT co DOT at
FIDO: Gruber_Gerhard AT 2:310/81.11
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |