Boost logo

Boost :

Subject: Re: [boost] Proposed SG14 <system_error2> ready for feedback
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2018-03-03 16:48:20


>> 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.

That worked example is written and can be viewed at
https://github.com/ned14/status-code/blob/master/doc/custom_domain_worked_example.md.
It should explain a lot more of how <system_error2> works.

Wandbox playpen of custom error code with payload of a thrown C++
exception: https://wandbox.org/permlink/cRDS3kWqcAmYHBD6

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk