G
Gernot Frisch
Hi,
I have a class DGStr (String class) and when I write:
// start
class DGStr {...};
const DGStr gString = "Test";
int main()
{ }
// ends
The program calls the constructor and = operator of the DGStr class _before_
main kicked in. The CRT is not initialized, yet.
I get very bad runtime errors here. It seems, that some constructors of
other class members have not been initialized yes and such.
Is there a way to assign a value to a global const object _after_ the CRT
initialized?
I hope you understand my problem.
-Gernot
I have a class DGStr (String class) and when I write:
// start
class DGStr {...};
const DGStr gString = "Test";
int main()
{ }
// ends
The program calls the constructor and = operator of the DGStr class _before_
main kicked in. The CRT is not initialized, yet.
I get very bad runtime errors here. It seems, that some constructors of
other class members have not been initialized yes and such.
Is there a way to assign a value to a global const object _after_ the CRT
initialized?
I hope you understand my problem.
-Gernot