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

Use std::integral_constant for Dune::has_nan

parent b8506f60
No related branches found
No related tags found
No related merge requests found
......@@ -406,13 +406,13 @@ namespace Dune
};
template <typename T>
struct has_nan {
bool static const value = std::is_floating_point<T>::value;
struct has_nan
: public std::integral_constant<bool, std::is_floating_point<T>::value> {
};
template <typename T>
struct has_nan<std::complex<T>> {
bool static const value = std::is_floating_point<T>::value;
struct has_nan<std::complex<T>>
: public std::integral_constant<bool, std::is_floating_point<T>::value> {
};
#if defined(DOXYGEN) or HAVE_IS_INDEXABLE_SUPPORT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment