Boost logo

Boost :

From: Gennadiy E. Rozental (rogeeff_at_[hidden])
Date: 2001-11-13 17:49:51


--- In boost_at_y..., Mattias Flodin <flodin_at_c...> wrote:
> On Tue, 13 Nov 2001 scleary_at_j... wrote:
>
> > Actually, the *construction* order has no guaranteed relation; the
> > destruction order is guaranteed to be the reverse of the
construction order.
>
> Right, that's another way of looking at it.
>
> > That is, by controlling when instance() is called, you can
control (at least
> > to some degree) the construction order, and by implication the
destruction

What if you want to change the order of destruction?. Example: A need
C and B need C. You create A, which in turn will create C. Then you
create B. What happend at distruction time?

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk