From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-02-28 18:17:14
At 10:05 AM 2/28/2002, Aleksey Gurtovoy wrote:
>Stewart, Robert wrote:
>> There are two approaches to such functions: return bool or a
>> status code and wrap to get exceptions, or throw exceptions
>> and wrap to get a bool or status code.
>The library can also take the burden of wrapping away from user and
> void remove(std::string const& path); // throws
> bool remove(std::string const& path, std::nothrow_t const&) throw();
>Just an idea.
The same idea occurred to me. Needs a bit more thought, but might be a
reasonable way to encourage good programming practices without requiring
them where they don't apply. I like the idea of making the less safe code
a bit uglier:-)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk