From 4fca9eb453b5298701d1dae254433c191e54af75 Mon Sep 17 00:00:00 2001
From: Markus Blatt <markus@dr-blatt.de>
Date: Thu, 19 Sep 2024 10:21:53 +0000
Subject: [PATCH] Appiied suggestion to refactor to template sfinae

---
 dune/istl/io.hh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dune/istl/io.hh b/dune/istl/io.hh
index 935ac04e1..53c420c13 100644
--- a/dune/istl/io.hh
+++ b/dune/istl/io.hh
@@ -425,11 +425,11 @@ namespace Dune {
    * #include <dune/istl/io.hh>
    * \endcode
    */
-  template <class MatrixType>
+  template <class MatrixType,
+    std::enable_if_t<not Dune::IsNumber<MatrixType>::value, int> = 0>
   void writeMatrixToMatlabHelper(const MatrixType& matrix,
                                  int externalRowOffset, int externalColOffset,
-                                 std::ostream& s,
-                                 [[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<MatrixType>::value>* sfinae = nullptr)
+                                 std::ostream& s)
   {
     // Precompute the accumulated sizes of the columns
     std::vector<typename MatrixType::size_type> colOffset(matrix.M());
-- 
GitLab