| www.delorie.com/archives/browse.cgi | search |
| From: | Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Templates |
| Date: | Sat, 30 Dec 2000 00:43:47 +0000 |
| Organization: | Customer of Energis Squared |
| Lines: | 12 |
| Message-ID: | <v5bq4t0282ht4ubkq2up4tuoh6g91309fq@4ax.com> |
| References: | <Q7N16.4022$7f3 DOT 268692 AT bgtnsc07-news DOT ops DOT worldnet DOT att DOT net> |
| NNTP-Posting-Host: | modem-144.beryllium.dialup.pol.co.uk |
| Mime-Version: | 1.0 |
| X-Trace: | newsg3.svr.pol.co.uk 978137044 12293 62.136.3.144 (30 Dec 2000 00:44:04 GMT) |
| NNTP-Posting-Date: | 30 Dec 2000 00:44:04 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"WantToKnowPlease" <replyNewsGroubPlease AT eee DOT com> wrote: > Happy holidays to everyone....... > when I wrote this simple test line > array<int> arr(10); > The compiler told that the class (array) has no constructor and has no > destructor > I think they both exist, so what is wrong here? You have split the class declaration and implimentation as if for a normal class. For a template class everything goes in the header file array.h, there should be no array.cpp file.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |