Boost logo

Boost :

Subject: Re: [boost] [system][filesystem v3] Question abouterror_code arguments
From: Scott McMurray ([hidden])
Date: 2009-10-28 10:52:40

2009/10/27 Andrey Semashev <andrey.semashev_at_[hidden]>:
> As I said in my another post, it depends on how postconditions are formed.
> If "the file does not exist" is the postcondition, I don't see why it should
> throw in the case you described.

So in some cases, it's useful to allow for wider semantics, with a
code indicating the result -- in this case, whether the file was
actually removed.

It's a rather straight-forward expansion of that idea to functions
that never throw and thus return error_codes.

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