
23 Dec
2008
23 Dec
'08
7:20 a.m.
on Sun Dec 21 2008, Mika Heiskanen
I guess the problem is that I believe invariant failures may be recoverable, but it does not seem to be the concensus.
They may be, but they may not be, and you can't know which, since your program wasn't designed to behave the way it has behaved. Trying to recover can do more damage than good in such a scenario.
Perhaps I am thinking too much about servers which must not crash.
For such servers there are other approaches, like starting up a fresh process and shutting down the current one. But all this is covered in that thread I referred to: http://groups.google.com/group/comp.lang.c++.moderated/browse_frm/thread/800... -- Dave Abrahams BoostPro Computing http://www.boostpro.com