Skip to content
Snippets Groups Projects
Commit 57787d42 authored by Elias Pipping's avatar Elias Pipping
Browse files

Rename isNumber to Solvers::IsNumber

The namespace should avoid collisions once IsNumber is accepted into
dune-common.
parent cc084f66
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -4,13 +4,15 @@
#include <type_traits>
namespace Dune {
template <typename T>
struct isNumber
: public std::integral_constant<bool, std::is_arithmetic<T>::value> {};
namespace Solvers {
template <typename T>
struct IsNumber
: public std::integral_constant<bool, std::is_arithmetic<T>::value> {};
template <typename T>
struct isNumber<std::complex<T>>
: public std::integral_constant<bool, isNumber<T>::value> {};
template <typename T>
struct IsNumber<std::complex<T>>
: public std::integral_constant<bool, IsNumber<T>::value> {};
}
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment