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

Appiied suggestion to refactor to template sfinae

parent ec80ed6b
No related branches found
No related tags found
1 merge request!579Get rid off unused-variable-warnings.
Pipeline #73669 canceled
......@@ -168,11 +168,11 @@ namespace Dune {
* #include <dune/istl/io.hh>
* \endcode
*/
template<class M>
template<class M,
std::enable_if_t<not Dune::IsNumber<M>::value, int> = 0>
void print_row (std::ostream& s, const M& A, typename M::size_type I,
typename M::size_type J, typename M::size_type therow,
int width, int precision,
[[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr)
int width, int precision)
{
typename M::size_type i0=I;
for (typename M::size_type i=0; i<A.N(); i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment