16#ifndef dealii_sundials_utilities_h
17#define dealii_sundials_utilities_h
24#ifdef DEAL_II_WITH_SUNDIALS
46 template <
typename F,
typename... Args>
49 std::exception_ptr &eptr,
63 std::rethrow_exception(eptr);
80 f(std::forward<Args>(args)...);
90 eptr = std::current_exception();
95 catch (
const std::exception &)
97 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)