From aef6672c82c654b96db6d169ff67e7790ff7e285 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 19 Apr 2021 20:09:09 -0500 Subject: [PATCH] fix a -Wdtor warning --- source/sundials/sunlinsol_wrapper.cc | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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 -- 2.39.5