| delorie.com/archives/browse.cgi | search |
| Xref: | news-dnh.mv.net comp.os.msdos.djgpp:2966 |
| Newsgroups: | comp.os.msdos.djgpp |
| Path: | news-dnh.mv.net!mv!news.sprintlink.net!tank.news.pipex.net!pipex!oleane!in2p3.fr!swidir.switch.ch!scsing.switch.ch!news.dfn.de!news.uni-bielefeld.de!news |
| From: | Andre Krause <akrause AT techfak DOT uni-bielefeld DOT de> |
| Subject: | Re: Templates in DJGPP. |
| Sender: | news AT hermes DOT hrz DOT uni-bielefeld DOT de (News Administrator) |
| Date: | Sun, 29 Oct 1995 18:47:16 GMT |
| References: | <1995Oct27 DOT 092027 AT zipi DOT fi DOT upm DOT es> <10sNDD2w200w AT alcyone DOT darkside DOT com> |
| Nntp-Posting-Host: | dozy.hrz.uni-bielefeld.de |
| Organization: | Universitaet Bielefeld, Rechenzentrum |
| Lines: | 24 |
| To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
Another Method wich works also for Borland Compilers is the following:
You append at the very end in the "certain module" a function similiar
to this:
void __foo()
{
CLASSNAME<type> a1;
// for example
VEKTOR2D<int> a2;
VEKTOR2D<float> a3;
}
this will work with most compilers while the method
template VEKTOR2D<int>;
works only for gpp.
bye, Andre
--
********************************
Andre Krause
akrause AT techfak DOT uni-bielefeld DOT de
********************************
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |