]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix a -Wdtor warning 12060/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 20 Apr 2021 01:09:09 +0000 (20:09 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 20 Apr 2021 01:09:09 +0000 (20:09 -0500)
source/sundials/sunlinsol_wrapper.cc

index d0fed625796c43d1fd9afa7eb696bf893ad96b60..78bc3db2fdaac8e51a7a1f9cd60dfc28537bf213 100644 (file)
@@ -194,19 +194,22 @@ namespace SUNDIALS
 
 
 
-  template <typename VectorType>
-  internal::LinearSolverWrapper<VectorType>::~LinearSolverWrapper()
+  namespace internal
   {
-    SUNLinSolFreeEmpty(sun_linear_solver);
-  }
+    template <typename VectorType>
+    LinearSolverWrapper<VectorType>::~LinearSolverWrapper()
+    {
+      SUNLinSolFreeEmpty(sun_linear_solver);
+    }
 
 
 
-  template <typename VectorType>
-  internal::LinearSolverWrapper<VectorType>::operator SUNLinearSolver()
-  {
-    return sun_linear_solver;
-  }
+    template <typename VectorType>
+    LinearSolverWrapper<VectorType>::operator SUNLinearSolver()
+    {
+      return sun_linear_solver;
+    }
+  } // namespace internal
 
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.