Commit 98944ab5 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

(cherry picked from commit f78f852b)

460ea097 parameter to constexpr function cannot be used as constant
parent aec4713a
Pipeline #6885 passed with stage
in 4 minutes and 10 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