
26 Jun
2012
26 Jun
'12
7:39 a.m.
Hi, I would like to use a boost::intrusive::list as a static global resource, which are accessed by other global objects. To ensure that the list is initialized before it is used by "other" global objects, I have been looking in to using the "Nifty counter" method (http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Nifty_Counter). The problem is, that the nifty counter demands that it can control construction and destruction of the object. Is there any achieve this or something similar when using intrusive::list as a global resource? Best regards Allan W. Nielsen