From ec80ed6b4d86f7813b974ee1722f64db6d2c3924 Mon Sep 17 00:00:00 2001 From: Markus Blatt <markus@dr-blatt.de> Date: Thu, 19 Sep 2024 10:22:51 +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 53c420c13..5421633d2 100644 --- a/dune/istl/io.hh +++ b/dune/istl/io.hh @@ -407,11 +407,11 @@ namespace Dune { * * This specialization for numbers ends the recursion */ - template <class FieldType> + template <class FieldType, + std::enable_if_t<Dune::IsNumber<FieldType>::value, int> = 0> void writeMatrixToMatlabHelper(const FieldType& value, int rowOffset, int colOffset, - std::ostream& s, - [[maybe_unused]] typename std::enable_if_t<Dune::IsNumber<FieldType>::value>* sfinae = nullptr) + std::ostream& s) { //+1 for Matlab numbering s << rowOffset + 1 << " " << colOffset + 1 << " "; -- GitLab