🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2370

Re: Template Instantiation

#2370
From: David Vandevoorde
Date: Tue, 31 Oct 1995 02:45
22 lines
1522 bytes
>>>>> "MR" == Michael Rice <mpr@absoft.com> writes:
I (Daveed) wrote:
>> Classes and member classes should be instantiated only if their
>> size or at least part of their layout is needed. If only their name
>> is needed, no instantiation should occur.

MR> What about the use of a typedef name from the class.  No size or
MR> layout is needed.  Example:
[example elided ...]

Good point. I thought it shouldn't (necessarily) require instantiation
of the typedef-enclosing class, but my favo(u)rite compiler says
otherwise (with your particular example)... and its designers are very 
knowledgeable in this area.

Anyone care to comment?

	Daveed
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <VANDEVOD.95Oct30181524@avs.cs.rpi.edu>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
References: <47345t$ouk@engnews1.eng.sun.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 31 Oct 95 02:45:45 GMT
Approved: fjh@cs.mu.oz.au
Return-Path: <daemon@migs.UCAR.EDU>
From: vandevod@cs.rpi.edu (David Vandevoorde)
Newsgroups: comp.std.c++
Subject: Re: Template Instantiation
X-Original-Date: 30 Oct 1995 23:15:24 GMT
Organization: RPI Computer Science
Message-ID: <VANDEVOD.95Oct30181524@avs.cs.rpi.edu>
References: <47345t$ouk@engnews1.eng.sun.com>
In-Reply-To: "Michael Rice"'s message of 30 Oct 1995 18:05:49 GMT
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMJWOAOEDnX0m9pzZAQFz1QGAo6b9cqii1BGWdfeL+ohqAc7PAYR/wx2j
 TsH2iheauIjxg51CDTIvc9GzXFUcfWj6
 =33NW