Boost logo

Boost :

From: Andrew D Jewell (ajewell_at_[hidden])
Date: 2000-03-20 09:10:01


>In brief, they provide no compile-time safety and lead to worse generated
>code on many (if not most) compilers.

In October of 1998, I exchanged some email with Bjarne Stroustrup on
this very topic. To way-over-summarize, he asserts that it is almost
always better to put in an empty exception specification "throw()"
wherever you can, and occasionally better to add other exception
specifications "throw(stuff, junk)".

I would strongly recommend that boost have separate guidelines for
empty and full exception specifications; whatever they may turn out
to be.

Andy Jewell


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