🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Template Instantiation

#2352
From: Jason Merrill
Date: Mon, 30 Oct 1995 10:59
15 lines
1371 bytes
>>>>> David Vandevoorde <vandevod@cs.rpi.edu> writes:

> I believe it is implicit in the semantic descriptions throughout the DWP.
> For functions (member or not), they should only be instantiated if they
> are called. The only exception are virtual functions: they can be 
> instantiated if the class to which they belong is instantiated.

What if their address is taken?  What if they are called in a sizeof
expression?  What about static data members?

Jason
---
[ 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: <u9ohuzocqp.fsf@yorick.cygnus.com>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <9510272025.AA09665@absoft.absoft.com> <VANDEVOD.95Oct29114646@avs.cs.rpi.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 30 Oct 95 10:59:01 GMT
Approved: fjh@cs.mu.oz.au
From: jason@cygnus.com (Jason Merrill)
Newsgroups: comp.std.c++
Subject: Re: Template Instantiation
X-Original-Date: 29 Oct 1995 19:46:06 -0800
Organization: Cygnus Support, Mountain View, CA
Message-ID: <u9ohuzocqp.fsf@yorick.cygnus.com>
References: <9510272025.AA09665@absoft.absoft.com>
 <VANDEVOD.95Oct29114646@avs.cs.rpi.edu>
In-Reply-To: vandevod@cs.rpi.edu's message of 30 Oct 95 02:49:11 GMT
X-Newsreader: Gnus v5.0
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMJSwCuEDnX0m9pzZAQE19wGAhzT62Dc0kgdA9kmipCTAJFCZsQZLIw2G
 Pj8fNVomFK4EMQ6ixWQ/5W3O4RhYPJbY
 =xcuL