Boost logo

Boost :

From: Gennadiy E. Rozental (rogeeff_at_[hidden])
Date: 2001-11-13 21:48:14


--- In boost_at_y..., "Rainer Deyke" <root_at_r...> wrote:
> ----- Original Message -----
> From: "Gennadiy E. Rozental" <rogeeff_at_m...>
> To: <boost_at_y...>
> Sent: Tuesday, November 13, 2001 3:49 PM
> Subject: [boost] Re: Work in progress list? And how about a
singleton?
>
>
> > 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?
>
> The right thing automatically happens: all three objects are
destroyed in
> inverse construction order. First B, then A, then C.
Sorry bad example. Another try:

A uses C on destruction, B uses C on construction. Creation sequence:
A, C, B. Automatic destruction sequence: B, C, A. A out of luck C
already gone.

Gennadiy.

>
>
> --
> Rainer Deyke (root_at_r...)
> Shareware computer games -
http://rainerdeyke.com
> "In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" -
Abigor


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