
Originally Posted by
Akira__tyler
Why is it that I get no errors when I define this outside of both classes?:
std::vector<A*> ImAClass::listOfA_; //seemingly does nothing? maybe??
Because you are correctly defining the static member variable (assuming that you do so in exactly one source file(.

Originally Posted by
Akira__tyler
But I get an unresolved external symbol error when I omit it?
Because without it, you only declared the static member variable, but never defined it.
By the way, contrary to the comment, this line declares a default constructor:
Code:
ImAClass(void); //non-default constructor
Remember to post your code in [code][/code] bbcode tags.
Bookmarks