🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #818

Re: Templates

#818
From: Rohan LENARD
Date: Sun, 05 Nov 1995 20:43
31 lines
1481 bytes
In article <9511020125.AA08550@brie>,
Albert Golembiowski <albert@inrs-telecom.uquebec.ca> wrote:
>Sorry Rohan,
>
>In the name of sowing snow on confusion, I have to disagree. 
>Or maybe I misunderstood the original question.
>
>What do you say to this:
> [1] g++ has to see both template interface (*.hh) and implementation (*.C),
>     by magic (`-frepo') or in front of her nose, to instantiate.
> [2] this doesn't mean that *.C has to be put in *.hh (dependency nightmare)
>

That's exactly what I said.

:ag> You can only do this if -
:ag> 
:ag> 1.	You use -frepo
:ag> 2.	You need to compile at least 1 version of the source (so g++ knows
:ag> 	where to find the class definition).
:ag> 

Okay, so I should have said .C for source..

Regards,
	Rohan
-- 
----------------------------------------------------------------------------
rjl@iassf.easams.com.au	| All quotes can be attributed to my automated quote
Rohan Lenard            | writing tool.  Yours for just $19.95; and if you
+61-2-367-4555          | call now you'll get a free set of steak knives ...
Technical Details
Message-ID: <47j7ko$joe@f111.iassf.easams.com.au>
Path: arc1-ca.pugleaf.net!iassf.easams.com.au!not-for-mail
References: <476625$1fb@f111.iassf.easams.com.au> <9511020125.AA08550@brie>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!iassf.easams.com.au!not-for-mail
From: rjl@f111.iassf.easams.com.au (Rohan LENARD)
Newsgroups: gnu.g++.help,comp.lang.c++
Subject: Re: Templates
Date: 6 Nov 1995 07:43:04 +1100
Organization: EASAMS (Australia) Pty Ltd
Message-ID: <47j7ko$joe@f111.iassf.easams.com.au>
References: <476625$1fb@f111.iassf.easams.com.au> <9511020125.AA08550@brie>
NNTP-Posting-Host: f111