Section 3.6.2 clause 2 of the c++ standard basically says we cannot rely on the order of initialization.

This commit is contained in:
Steve Checkoway
2005-12-29 11:15:28 +00:00
parent 811e488bb5
commit 7dd0014caa
+4 -2
View File
@@ -21,8 +21,10 @@
#include "Banner.h"
const CString BANNER_CACHE_INDEX = SpecialFiles::CACHE_DIR + "banners.cache";
/* Neither a global or a file scope static can be used for this because
* the order of initialization of nonlocal objects is unspecified. */
//const CString BANNER_CACHE_INDEX = SpecialFiles::CACHE_DIR + "banners.cache";
#define BANNER_CACHE_INDEX (SpecialFiles::CACHE_DIR + "banners.cache")
/* Call CacheBanner to cache a banner by path. If the banner is already
* cached, it'll be recreated. This is efficient if the banner hasn't changed,