Xref: utzoo comp.lang.c++:11653 comp.std.c++:596 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!roundup.crhc.uiuc.edu!uicadd.csl.uiuc.edu!steven From: steven@uicadd.csl.uiuc.edu (Steven Parkes) Newsgroups: comp.lang.c++,comp.std.c++ Subject: Re: Templates...? Message-ID: <1991Feb14.185332.14094@roundup.crhc.uiuc.edu> Date: 14 Feb 91 18:53:32 GMT References: <10815@jarthur.Claremont.EDU> <603@taumet.com> Sender: news@roundup.crhc.uiuc.edu Reply-To: steven@pacific.csl.uiuc.edu Distribution: usa Organization: Coordinated Science Laboratory, University of Illinois Lines: 29 I'm curious as to where discusion of templates is occuring .... For example: In considering templates for current code, the following situation came up: template class Mapping { static const int defaultTableSize; static const int defaultMaximumDensity; static const float defaultGrowthRate; } To initialize these static variables, a template of the form template const int Mapping::defaultTableSize = 11; is needed -- however, E&S states that ``The declaration in a template-declaration must declare or define a function or a class.'' It seems pretty clear that this type of assignment should be allowed. steven parkes --------------------------------------- University of Illinois Coordinated Science Laboratory steven@pacific.csl.uiuc.edu -------------------------