Skip to content
Snippets Groups Projects
Commit ba18a665 authored by René Fritze's avatar René Fritze Committed by René Fritze
Browse files

fix headercheck

parent 340fd3c5
No related branches found
No related tags found
1 merge request!31Sfinae and stuff
Pipeline #63830 passed
......@@ -24,6 +24,7 @@
#include <boost/algorithm/string/trim.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/numeric/conversion/cast.hpp>
#include <boost/algorithm/string/constants.hpp>
#include <dune/xt/common/reenable_warnings.hh>
#include <dune/xt/common/debug.hh>
......
......@@ -63,7 +63,7 @@ public:
}
return inverse_matrix;
} else {
static_assert(false, "compute not available");
static_assert(AlwaysFalse<FunctionType>::value, "compute not available");
}
}
}; // class InverseFunctionHelper
......@@ -234,7 +234,7 @@ auto inverse(ElementFunctionInterface<E, r, rC, R>& func, const int order)
if constexpr (internal::InverseFunctionHelper<ElementFunctionInterface<E, r, rC, R>>::available) {
return InverseElementFunction<ElementFunctionInterface<E, r, rC, R>>(func, order);
} else {
static_assert(false, "No inverse implementation available");
static_assert(AlwaysFalse<R>::value, "No inverse implementation available");
}
}
......@@ -245,7 +245,7 @@ auto inverse(const FunctionInterface<d, r, rC, R>& func, const int order)
if constexpr (internal::InverseFunctionHelper<FunctionInterface<d, r, rC, R>>::available) {
return InverseFunction<FunctionInterface<d, r, rC, R>>(func, order);
} else {
static_assert(false, "No inverse implementation available");
static_assert(AlwaysFalse<R>::value, "No inverse implementation available");
}
}
......@@ -256,7 +256,7 @@ auto inverse(const GridFunctionInterface<E, r, rC, R>& func, const int order)
if constexpr (internal::InverseFunctionHelper<GridFunctionInterface<E, r, rC, R>>::available) {
return InverseGridFunction<GridFunctionInterface<E, r, rC, R>>(func, order);
} else {
static_assert(false, "No inverse implementation available");
static_assert(AlwaysFalse<R>::value, "No inverse implementation available");
}
}
......
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