Re: Ordering of static destructors on exit
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Aug 8, 2006, at 11:14 PM, Rob Cas wrote: I was wondering if anybody can tell me precisely when the destructors of static objects are called. -- Steve Checkoway _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com C++ doesn't not specify the order in which dtors are called. You cannot rely on this order as it can and has changed before. You likely need to restructure your code such that this is not an issue. What I've found to work best is to ensure that dtors of static objects do nothing nontrivial. smime.p7s
participants (1)
-
Steve Checkoway