Subject: Re: [boost] rvalue ref best practices?
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-06-17 15:44:31
on Fri Jun 15 2012, bibil <bibil.thaysose-AT-gmail.com> wrote:
> I hope this isn't too OT, but this statement, although subjective,
> doesn't seem true to me:
> "... code where the catch block doesn't rethrow tends to be incredibly
> Is there more context to this statement, or is that intended to be a
> general truth? If you're talking about writing a library then it seems
> natural that you want the users of that library to make decisions about
> how to handle exceptions, but OTOH I don't think you want to terminate
> an application every time an exception is thrown (do you?).
No, you usually don't. However, you generally want to limit
"catch-and-swallow/catch-and-translate" blocks to a very few instances
in the code.
> Since this is a Boost mailing list you probably mean that _library_
> code that isn't exception neutral is incredibly rare. That seems more
> true to me, but I would only add 'well-written' before library.
I feel "well-written" is redundant when making these sorts of
unsupportably broad and sweeping generalizations ;-)
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk