Skip to content
Snippets Groups Projects
Commit 4fca9eb4 authored by Markus Blatt's avatar Markus Blatt
Browse files

Appiied suggestion to refactor to template sfinae

parent a574dd7b
No related branches found
No related tags found
1 merge request!579Get rid off unused-variable-warnings.
Pipeline #73667 canceled
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment