M
Mike - EMAIL IGNORED
MyClass
{
//I have a static member method:
void static myMethod();
//and a static data member:
static MyType myData;
};
//In the .cpp file:
void MyClass::myMethod()
{
if (myData == myInitialValue)
...
}
//and below, in the same file:
MyType MyClass::myData = myInitialValue;
Can I rely on initialization in time for the if
statement? Chapter and verse?
Thanks for your help.
Mike.
{
//I have a static member method:
void static myMethod();
//and a static data member:
static MyType myData;
};
//In the .cpp file:
void MyClass::myMethod()
{
if (myData == myInitialValue)
...
}
//and below, in the same file:
MyType MyClass::myData = myInitialValue;
Can I rely on initialization in time for the if
statement? Chapter and verse?
Thanks for your help.
Mike.