17#ifndef dealii_sundials_utilities_h
18#define dealii_sundials_utilities_h
22#ifdef DEAL_II_WITH_SUNDIALS
44 template <
typename F,
typename... Args>
47 std::exception_ptr &eptr,
61 std::rethrow_exception(eptr);
78 f(std::forward<Args>(args)...);
88 eptr = std::current_exception();
93 catch (
const std::exception &)
95 eptr = std::current_exception();
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & RecoverableUserCallbackError()
#define AssertThrow(cond, exc)
int call_and_possibly_capture_exception(const F &f, std::exception_ptr &eptr, Args &&...args)