Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-20 10:35:07


From: "Alexander Terekhov" <terekhov_at_[hidden]>
>
> Peter Dimov wrote:
> >
> > Alexander Terekhov <terekhov_at_[hidden]> wrote in message
news:<3D613D44.9B67916_at_[hidden]>...
> > > Peter Dimov wrote:
> > > [...]
> > > > What is brain dead, the concept or the implementation?
> > >
> > > The concept. I, personally, really don't like the idea of propagating
> > > std::logic_error (and alike beasts) across threads on join -- ideally,
> > > I want it to kill the process at throw point, unless someone really
> > > wants to pretend that s/he can "recover" from it and catch it for that
> > > or some other (most likely silly) reason;
> >
> > You can put an exception specification that prohibits std::logic_error
> > on the threadproc (and hope that it doesn't unwind ;-) .)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Peter, I'm going to IGNORE your wink. ;-) That's rather serious
> issue/design flaw in the current C++ language, I believe strongly.

It is, if you insist that throwing an exception is the right thing to do
when you detect a programming error.

It's not, if you don't.


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