
27 Jun
2012
27 Jun
'12
9:21 p.m.
There are exception_ptr use cases for single threaded programs.
As an example, I've written an ASIO-based application that makes use of callbacks where one of the arguments is an exception_ptr. If the exception_ptr is not null then it contains the exception that occurred during the requested operation. It can run with a single thread and the exception transporting would still be useful. Before I used exception transporting I was passing a status indicator which was not nearly as nice. -- Brant