Subject: Re: [boost] [system][filesystem v3] Question abouterror_code arguments
From: Scott McMurray (me22.ca+boost_at_[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
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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk