2018-03-01 18:57 GMT+01:00 Niall Douglas via Boost
The github readme at https://github.com/ned14/status-code gives a clear description how I can make use of POSIX and Windows-standard error codes.
It must therefore not be self obvious? Darn. I had thought it very simple, basically
with a few obvious tweaks. Not worth much explaining, anyway.
Not obvious to me: especially the templetized codes, and two kinds of type
erasure. This part of the design is definitely more complicated than the
original
Could we have similar short and clear examples illustrating how one can: 1. Create a custom error_category (or equivalent thing) 2. Use parametrized statuc_code
There is a test custom domain at https://github.com/ned14/status-code/blob/master/test/main.cpp#L44.
But how about a mini-tutorial on building a custom code domain whose status code wraps any arbitrary thrown C++ exception? It looks like SG14 and WG21 is going to need one of those in any case.
Any information would be useful, but I think it is more basic things that
are insufficiently described.
For now, consider it a feedback on what a casual reader will not understand
about