The code:
class Object
{
...
static vector instantiatedObjects;
...
};
vector Object::instantiatedObjects =
vector();
Small problem: the vector insantiatedObjects
should actually be vector (the type Object* in template brackets) instantiatedObjects
. I hope this helps.
The last line is in my main program module. The problem is that my program crashes after the last bit of source code. (I've checked with my debugger) Any suggestions?
JoeG
[This message has been edited by joeG (edited October 19, 1999).]
[This message has been edited by joeG (edited October 19, 1999).]