16 Sep
2013
16 Sep
'13
2:43 p.m.
On 15 September 2013 20:25, Eric Niebler
On 13-09-09 02:57 PM, Niall Douglas wrote:
On 9 Sep 2013 at 13:11, Nevin Liber wrote:
In C++03 it was always best practice to *always* wrap your destructors in a try...catch clause.
No; the best practice is not to throw from a destructor.
Sorry, my unclear phrasing again ... by wrapping destructors I specifically meant:
destructor::~destructor() { try { ... } catch(...) { /* do something useful */ } }
Can you elaborate on what "something useful" is in this context?
As well what happens if something in that block throws. -- Nevin ":-)" Liber mailto:nevin@eviloverlord.com (847) 691-1404