Monday, September 21, 2009

c++ giving an order in the allocating static objects

When a static object uses another static object there is no guarantee about the order of initialization.
  • How can you guarantee that an object is allocated before another one?
  • What if you need to give an order in the de-allocation process of static objects?

No comments:

Post a Comment