
29 Oct
2009
29 Oct
'09
9:20 p.m.
On Thu, Oct 29, 2009 at 5:07 PM, Emil Dotchevski <emildotchevski@gmail.com> wrote:
On Thu, Oct 29, 2009 at 1:46 PM, Stewart, Robert <Robert.Stewart@sig.com> wrote:
It's simple:
if (error-not-checked && !std::uncaught_exception()) { throw something; }
I've read that article before. To me it only seemed applicable to destructors that actually did something, like a rollback. For an object that does nothing in its destructor, do you think Herb's arguments still apply? I'm not advocating either error checking approach, I'm just genuinely curious. But maybe that makes it offtopic... Regards, --Michael Fawcett