Commit f78f852b authored by Steffen Müthing's avatar Steffen Müthing

Merge branch 'issue/intel_compiler_compatibility' into 'master'

parameter to constexpr function cannot be used as constant

See merge request !5
parents 44ad28d3 460ea097
Pipeline #6884 passed with stage
in 3 minutes and 49 seconds
......@@ -386,7 +386,7 @@ namespace Dune {
template<typename T>
constexpr typename std::enable_if<
is_flat_index<T>{},
Dune::TypeTree::is_flat_index<T>::value,
bool
>::type
_non_empty_tree_path(T)
......@@ -396,7 +396,7 @@ namespace Dune {
template<typename T>
constexpr typename std::enable_if<
!is_flat_index<T>{},
!Dune::TypeTree::is_flat_index<T>::value,
bool
>::type
_non_empty_tree_path(T t)
......
......@@ -437,9 +437,9 @@ namespace Dune {
*/
template<typename... T, typename std::enable_if<(sizeof...(T) > 0),bool>::type = true>
auto back(const HybridTreePath<T...>& tp)
-> decltype(treePathEntry<treePathSize(tp)-1>(tp))
-> decltype(treePathEntry<sizeof...(T)-1>(tp))
{
return treePathEntry<treePathSize(tp)-1>(tp);
return treePathEntry<sizeof...(T)-1>(tp);
}
//! Returns a copy of the first element of the `HybridTreePath`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment