This is the mail archive of the
mailing list for the GCC project.
Re: Template linking problem
On Nov 7, 2007, at 10:26 AM, Harvey Chapman wrote:
static int number;
The line above is required.
That'll teach me to compile and test before e-mailing. I guess I've
just never used a static data member in a class before, I usually only
use static variables inside functions, if ever.
So, back to the original question, why do I have to specfically re-
declare the static data member outside of the class header?