Boost logo

Boost :

Subject: Re: [boost] [system][filesystem v3] Question about error_codearguments
From: Peter Foelsche (peter_foelsche_at_[hidden])
Date: 2009-10-26 17:14:29

"Andrey Tcherepanov" <moyt63c02_at_[hidden]> wrote in message
> socket.close(boost::system::error_code());

after 1996 (after C++ Exception Handling was introduced)
I did not call close() anymore directly in my code -- it usually resides in
a destructor.

I also wonder what error code could close possibly return?

LINUX man page tells me that there is
* EBADF which cannot happen if the constructor was successful.
* EINTR which should be dealt with in the destructor by calling close

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