|
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
news:op.u17hoeykefd2ob_at_andrey-laptop.sod.shaw.ca...
> 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
repeatedly
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk