R
Richard Hayden
Hi,
I'm wondering if there is any order in the calling of global and static
member objects' constructors which occurs before a C++ program can run.
For example, what if I wish to use static member variable objects in a
global variable's constructor? I was thinking that perhaps C++
guarantees to construct all global variable objects first or all static
member variable objects first. Is this at all the case?
Thanks,
Richard Hayden.
I'm wondering if there is any order in the calling of global and static
member objects' constructors which occurs before a C++ program can run.
For example, what if I wish to use static member variable objects in a
global variable's constructor? I was thinking that perhaps C++
guarantees to construct all global variable objects first or all static
member variable objects first. Is this at all the case?
Thanks,
Richard Hayden.