|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2002-08-13 16:17:39
From: "Victor A. Wagner, Jr." <vawjr_at_[hidden]>
> At Tuesday 2002/08/13 13:04, you wrote:
>
>
> >From: "Victor A. Wagner, Jr." <vawjr_at_[hidden]>
> >
> >
> > > At Tuesday 2002/08/13 10:34, you wrote:
> > >
> > > >
> > > >2) is viable; 1) is not. The referenced exception object is
destroyed
> >when
> > > >the catch block exits.
> > >
> > > I believe you are mistaken in your comment regarding 1). Or have I
> > > misunderstood what
> > > throw;
> > > does inside a catch block?
> >
> >Aren't we talking about propagating exceptions across thread boundaries?
>
> we are
>
>
> >If so, eventually the thread has to have a catch block that ends without
> >"throw;" or the process will almost certainly terminate.
>
> agreed
>
>
> >Aren't we talking about storing a copy of the exception object somewhere
so
> >it can be rethrown in another thread?
>
> we are
Good. In that case, the referenced exception object will be destroyed
before the main thread can touch it.
-Dave
-----------------------------------------------------------
David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk