10 Feb
2009
10 Feb
'09
8:16 p.m.
On Mon, 09 Feb 2009 17:24:15 +0100, Zachary Turner
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