Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: tobi@bland.fido.de (Tobias Ernst)
Subject: Re: cxx annoyance
Date: Tue, 19 Jun 2001 09:50:06 MEZ	[thread overview]
Message-ID: <992944044@f1.n7600.z242.fido.de> (raw)
In-Reply-To: B754F4E0.187F5%Mark.Garrett@wedontwantyourspam.com.au

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 <class T> 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



  reply	other threads:[~2001-06-19  8:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-18 19:40 cxx annoyance Tobias Ernst
2001-06-19  2:30 ` Mark Garrett
2001-06-19  8:50   ` Tobias Ernst [this message]
2001-06-19  6:02 ` Pentyern
2001-06-19  8:51   ` Tobias Ernst
2001-06-19 15:56     ` Pentyern
2001-06-19 19:29     ` Tim Mooney
2001-06-19  7:24 ` Wolfram Klaus
2001-06-19  8:54   ` Tobias Ernst
2001-06-27 10:53   ` Tobias Ernst
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox