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

Remove type traits after migration to dune-common

Naturally, if anyone used Dune::Solvers::IsNumber, that would now be
Dune::IsNumber. But I believe nobody was using this anyway.
parent 426755eb
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
resize.hh
staticmatrixtools.hh
tuplevector.hh
typetraits.hh
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