Skip to content
Snippets Groups Projects
Commit fcef8d16 authored by Elias Pipping's avatar Elias Pipping Committed by Max Kahnt
Browse files

Use Dune::IsNumber

Dune::IsNumber
 - uses std::is_arithmetic which is exactly what we need here
 - already covers std::complex and GMPField (through gmpfield.hh)
parent 86df9ec3
No related branches found
No related tags found
1 merge request!3Feature/multitype arithmetic
Pipeline #
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <dune/common/diagonalmatrix.hh> #include <dune/common/diagonalmatrix.hh>
#include <dune/common/fmatrix.hh> #include <dune/common/fmatrix.hh>
#include <dune/common/typetraits.hh>
#include <dune/istl/bcrsmatrix.hh> #include <dune/istl/bcrsmatrix.hh>
#include <dune/istl/scaledidmatrix.hh> #include <dune/istl/scaledidmatrix.hh>
...@@ -16,7 +17,7 @@ namespace MatrixVector { ...@@ -16,7 +17,7 @@ namespace MatrixVector {
template <class T> template <class T>
struct ScalarTraits { struct ScalarTraits {
enum { enum {
isScalar = (std::is_scalar<T>::value and not std::is_pointer<T>::value) isScalar = Dune::IsNumber<T>::value
}; };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment