|
Boost : |
From: Jason Hise (chaos_at_[hidden])
Date: 2005-01-13 17:59:55
Scott Woods wrote:
>The "typical problem" is that objects in any substantial application want
>to be destroyed in a runtime-dependent order. The exact order is driven
>by what activity occurs during execution. Trying to dictate an order (i.e.
>longevity-int) onto something that is dynamic is... misdirected.
>
>
For this "typical problem", wouldn't it make sense to simply use a
dependency oriented lifetime? This way there is no need to keep track
of the ints across the application, and singletons are created exactly
when they are needed and destroyed as soon as they are no longer required.
-Jason
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk