Boost logo

Boost :

From: Eric Woodruff (Eric.Woodruff_at_[hidden])
Date: 2002-08-13 12:26:37


Could the user not specify std::exception& instead?

----- Original Message -----
From: David Abrahams
Newsgroups: gmane.comp.lib.boost.devel
Sent: Tuesday, 2002:August:13 12:47 PM
Subject: Re: Re: Re: Re: Attempting resolution of Threads&ExceptionsIssue

----- Original Message -----
From: "Eric Woodruff" <Eric.Woodruff_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, August 13, 2002 1:05 PM
Subject: [boost] Re: Re: Re: Attempting resolution of Threads
&ExceptionsIssue

> The reason I asked was to know if you in fact saw that it was possible to
> accout for the seeminly "infinite" number of exceptions a user may want
to
> specify...

It is not. Not, at least, unless you want the user to specify each
/concrete/ exception type that may be thrown. If, for example, the user
specifies std::exception, you can't even store one because it's an abstract
base class. Worse, non-abstract base classes will be subject to silent
slicing.

-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


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