
Thanks for this useful link. I have checked boost::system::error, boost::asio::error, but could not find a solution to my problem. I am writing to a file using async_write_some(). If an error occurs, how can check whether the disk is full or not? A one or two line code will be very useful. Thanks a lot, Lloyd ----- Original Message ----- From: "Eric MALENFANT" <Eric.Malenfant@sagem-interstar.com> To: <boost-users@lists.boost.org> Sent: Monday, July 05, 2010 8:11 PM Subject: Re: [Boost-users] using system:error_code
De : boost-users-bounces@lists.boost.org [mailto:boost-users-
How can I interpret and use the error_code in my application?
Chris Kohlhoff wrote a series of blog posts on the topic: http://blog.think-async.com/2010/04/system-error-support-in-c0x-part-1.html
if(error.value()==2) //Not readable { }
if(error.value()==END_OF_FILE) //More readable { }
So how can I get the respective "enum" associated with the error
Look at boost::system::errc in boost/system/error_code.hpp
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
______________________________________ Scanned and protected by Email scanner