Boost logo

Boost :

From: Oliver.Kowalke_at_[hidden]
Date: 2006-06-22 01:00:32

You can also do this:

throw failed<read_error>() << wrap_errno();

Here, wrap_errno is a function that captures the current errno value,
and returns it as an object of some type, which is then stored in the
info sub-object of the exception being thrown. Of course, you can attach
more stuff directly in the throw-expression, by following with more
calls to operator<<.

I would be interessted in your library.

Boost list run by bdawes at, gregod at, cpdaniel at, john at