Boost logo

Boost :

Subject: Re: [boost] [system][filesystem v3] Question about error_codearguments
From: Michael Fawcett (michael.fawcett_at_[hidden])
Date: 2009-10-29 17:20:50

On Thu, Oct 29, 2009 at 5:07 PM, Emil Dotchevski
<emildotchevski_at_[hidden]> wrote:
> On Thu, Oct 29, 2009 at 1:46 PM, Stewart, Robert <Robert.Stewart_at_[hidden]> 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...


--Michael Fawcett

Boost list run by bdawes at, gregod at, cpdaniel at, john at