S
subramanian
Suppose I have the following classshown only partially. Assume proper
ctors and dtors):
class Date
{
...
static Date temp_date;
static Date another_date;
...
};
Date Date:temp_date;
Date Date::another_date;
int main(void)
{
...
return 0;
}
QUESTION:
1)What will be the order of destructor calls for temp_Date and
another_date.
2)Does the Standard C++ define the order of evaluation of these objects
in this situation or is it compiler dependent ?
ctors and dtors):
class Date
{
...
static Date temp_date;
static Date another_date;
...
};
Date Date:temp_date;
Date Date::another_date;
int main(void)
{
...
return 0;
}
QUESTION:
1)What will be the order of destructor calls for temp_Date and
another_date.
2)Does the Standard C++ define the order of evaluation of these objects
in this situation or is it compiler dependent ?