From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fa528,29614d1eab99e09f X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-06-19 04:37:28 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!194.213.69.151!news.algonet.se!algonet!f.de.uu.net!news.uni-stuttgart.de!bland.fido.de!nobody From: tobi@bland.fido.de (Tobias Ernst) Newsgroups: comp.unix.tru64 Subject: Re: cxx annoyance Date: Tue, 19 Jun 2001 09:50:06 MEZ Organization: Fido.De Host Baden-Wuerttemberg Message-ID: <992944044@f1.n7600.z242.fido.de> References: NNTP-Posting-Host: lilapause.physcip.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Comment-To: Mark Garrett X-MailConverter: SoupGate-OS/2 v1.42 Xref: archiver1.google.com comp.unix.tru64:2558 Hallo Mark! mark@ned>> cat t.h MG> struct c { MG> int i; MG> } C; mark@ned>> cat t.cc MG> #error "this file should not be included" mark@ned>> That's too easy. You must use template code in both the t.h and the t.cc file, something like template void foo(T& arg); in the header file and then the implementation of foo and instantiations of it in the cc file. Viele Gr��e, Tobias