Boost logo

Boost Users :

Subject: [Boost-users] Explicit constructing boost intrusive list
From: Allan Nielsen (a_at_[hidden])
Date: 2012-06-26 03:39:43


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net