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

Merge branch 'feature/remove-type-traits' into 'master'

Remove type traits after migration to dune-common

See merge request !13
parents 52ad277d 446067ed
No related branches found
No related tags found
1 merge request!13Remove type traits after migration to dune-common
Pipeline #
...@@ -13,5 +13,4 @@ install(FILES ...@@ -13,5 +13,4 @@ install(FILES
resize.hh resize.hh
staticmatrixtools.hh staticmatrixtools.hh
tuplevector.hh tuplevector.hh
typetraits.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers/common) DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers/common)
#ifndef DUNE_SOLVERS_COMMON_TYPETRAITS_HH
#define DUNE_SOLVERS_COMMON_TYPETRAITS_HH
#include <type_traits>
namespace Dune {
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> {};
}
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment