Suppose I have the following code:
extern std::string first_string;
My question is:
Is this guaranteed by the standard that first_string will always be initialized before another_string ?
If not, should such codes be avoided in practice?
I tried to figure this out by reading the C ++ N3485 standard of sections 3.6 and 3.7. But I did not find a good answer. My big recognition is if you can point me to the section of the standard when you draw the answer. Thank you for your help.
source share