Boost logo

Boost Users :

Subject: Re: [Boost-users] [System]
From: Boris Schaeling (boris_at_[hidden])
Date: 2013-08-12 13:03:18


On Mon, 12 Aug 2013 09:51:46 +0200, Geoff Shannon
<geoffpshannon_at_[hidden]> wrote:

> Hey all,
>
> I've been looking over the Boost System library with an eye to making use
> of the system error codes functionality. Specifically, I want to use it
> to
> turn error codes returned by unix system calls like socket, accept,
> listen
> etc. into thrown exceptions.
>
> However, from the documentation I can't understand how I'm supposed to do
> this. Anybody know, or have good clear example code to share?

You can reuse error code values from boost/system/error_code.hpp or define
your own error code values (have a look for example at
boost/asio/error.hpp). Or is your question about something else?

Boris


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