16#ifndef dealii_sundials_utilities_h
17#define dealii_sundials_utilities_h
21#ifdef DEAL_II_WITH_SUNDIALS
43 template <
typename F,
typename... Args>
46 std::exception_ptr &eptr,
60 std::rethrow_exception(eptr);
77 f(std::forward<Args>(args)...);
87 eptr = std::current_exception();
92 catch (
const std::exception &)
94 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)