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
Branches
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
#include <dune/common/diagonalmatrix.hh>
#include <dune/common/fmatrix.hh>
#include <dune/common/typetraits.hh>
#include <dune/istl/bcrsmatrix.hh>
#include <dune/istl/scaledidmatrix.hh>
......@@ -16,7 +17,7 @@ namespace MatrixVector {
template <class T>
struct ScalarTraits {
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