From -5394906377647122136
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a10c9d2f2b309296
X-Google-Attributes: gidf78e5,public
From: jason@cygnus.com (Jason Merrill)
Subject: Re: Template Instantiation
Date: 1995/10/30
Message-ID: <u9ohuzocqp.fsf@yorick.cygnus.com>#1/1
X-Deja-AN: 118384711
approved: fjh@cs.mu.oz.au
references: <9510272025.AA09665@absoft.absoft.com>
x-original-date: 29 Oct 1995 19:46:06 -0800
organization: Cygnus Support, Mountain View, CA
x-auth: PGPMoose V1.1 PGP comp.std.c++
newsgroups: comp.std.c++

>>>>> 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. ]



