Static initialisation question...

Mike Harrold mharrold@cas.org
Tue Apr 24 10:52:00 GMT 2001


Hi,

I know that there is no defined order of initialising static objects
when a program is run, so therefore it is inherently unsafe for one
static object to reference another.

My qeustion is if it is safe to assume that static member objects of
a base class are always initialised before statis member objects of
a derived class?

Thanks,

/Mike



More information about the Gcc-help mailing list