Boost logo

Boost Users :

Subject: Re: [Boost-users] Constructing an error code based on the last error?
From: Boris Schaeling (boris_at_[hidden])
Date: 2009-02-10 15:16:07


On Mon, 09 Feb 2009 17:24:15 +0100, Zachary Turner
<divisortheory_at_[hidden]> wrote:

> Does boost provide a portable way to create a system::error_code object
> based on the last error? I don't see an obvious way to do this via the
> documentation unless I'm just overlooking it. There's lots of ways to
> create uninitialized error code objects, or error code objects
> initialized
> to a specific value, but I don't see an obvious portable way of
> determining
> "why the last operation failed".

There are so many functions which return errors differently that I wonder
what you want to use to instantiate an error_code object with the last
error?

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