Task extension to be used with the TaskWith class.
Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).
Copyright (c) 2009-2016 dunnhumby Germany GmbH. All rights reserved.
Task extension which makes it possible to store exceptions from a callback so that is gets thrown after the task is resumed. This is useful for providing meaningful stacktraces which point to the origin of the faulty operation rather than to the event loop context.
Usage example: See the documented unittest of the ExceptionForwarding struct