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:

> 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, kalb at, bjorn.karlsson at, gregod at, wekempf at