12 Aug
2013
12 Aug
'13
5:03 p.m.
On Mon, 12 Aug 2013 09:51:46 +0200, Geoff Shannon
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