Template classes and static variables

I've recently come across a template class, which contains static data items, and was wondering how a compiler allocates storage for the static data in this case?
I've looked through a number of books and can't find an explanation as to how this works. Can anybody explain!
Memory for templates is generated at compile time because the compiler knows the actual type when building the binary. So it's able to allocate space for a static variable just the same.

You should check, but I would assume
static var<int> bob; is different to
static var<double> bob; when compiled.
Topic archived. No new replies allowed.