[comp.std.c++] Templates...?

steven@uicadd.csl.uiuc.edu (Steven Parkes) (02/15/91)

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 Key, class Value>
	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 <class Key, class Value>
	const int Mapping<Key,Value>::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 -------------------------