Boost logo

Boost :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2002-02-28 10:05:00


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 provide
both versions:

    void remove(std::string const& path); // throws
    bool remove(std::string const& path, std::nothrow_t const&) throw();

Just an idea.

Aleksey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk