Boost logo

Boost Users :

Subject: Re: [Boost-users] using system:error_code
From: Eric MALENFANT (Eric.Malenfant_at_[hidden])
Date: 2010-07-05 10:41:59


De : boost-users-bounces_at_[hidden] [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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net