From: Matthias Maier Date: Tue, 20 Apr 2021 01:09:09 +0000 (-0500) Subject: fix a -Wdtor warning X-Git-Tag: v9.3.0-rc1~209^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aef6672c82c654b96db6d169ff67e7790ff7e285;p=dealii.git fix a -Wdtor warning --- diff --git a/source/sundials/sunlinsol_wrapper.cc b/source/sundials/sunlinsol_wrapper.cc index d0fed62579..78bc3db2fd 100644 --- a/source/sundials/sunlinsol_wrapper.cc +++ b/source/sundials/sunlinsol_wrapper.cc @@ -194,19 +194,22 @@ namespace SUNDIALS - template - internal::LinearSolverWrapper::~LinearSolverWrapper() + namespace internal { - SUNLinSolFreeEmpty(sun_linear_solver); - } + template + LinearSolverWrapper::~LinearSolverWrapper() + { + SUNLinSolFreeEmpty(sun_linear_solver); + } - template - internal::LinearSolverWrapper::operator SUNLinearSolver() - { - return sun_linear_solver; - } + template + LinearSolverWrapper::operator SUNLinearSolver() + { + return sun_linear_solver; + } + } // namespace internal