diff --git a/include/deal.II/sundials/n_vector.templates.h b/include/deal.II/sundials/n_vector.templates.h index 42161e5b4bae..e6cb1a15eebf 100644 --- a/include/deal.II/sundials/n_vector.templates.h +++ b/include/deal.II/sundials/n_vector.templates.h @@ -363,8 +363,7 @@ SUNDIALS::internal::unwrap_nvector(N_Vector v) { Assert(v != nullptr, ExcInternalError()); Assert(v->content != nullptr, ExcInternalError()); - NVectorContent *pContent = - reinterpret_cast *>(v->content); + auto *pContent = reinterpret_cast *>(v->content); return pContent->get(); } @@ -376,7 +375,7 @@ SUNDIALS::internal::unwrap_nvector_const(N_Vector v) { Assert(v != nullptr, ExcInternalError()); Assert(v->content != nullptr, ExcInternalError()); - const NVectorContent *pContent = + const auto *pContent = reinterpret_cast *>(v->content); return pContent->get(); }