Commit 61d3d13a authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

replace operator[] access by treePathEntry()

parent 58ebcd51
......@@ -15,7 +15,7 @@ template <class... I, class... J,
bool compare(Dune::TypeTree::HybridTreePath<I...> const& tp1, Dune::TypeTree::HybridTreePath<J...> const& tp2)
{
return Ranges::applyIndices<sizeof...(I)>([&](auto... i) {
return ((tp1[i] == tp2[i]) &&...);
return ((Dune::TypeTree::treePathEntry(tp1,i) == Dune::TypeTree::treePathEntry(tp2,i)) &&...);
});
}
......
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