Commit 227b0db1 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Remove unused warning

parent eebb42d1
Pipeline #31080 passed with stage
in 2 minutes and 32 seconds
......@@ -108,7 +108,6 @@ namespace Dune {
constexpr bool useDynamicTraversal = (strategy == TraversalStrategy::Dynamic);
auto indices = Dune::range(traversalDegree<useDynamicTraversal>(tree));
Hybrid::forEach(indices, [&](auto i) {
auto childTreePath = TypeTree::push_back(treePath, i);
auto&& child = tree.child(i);
using Child = std::decay_t<decltype(child)>;
......@@ -119,10 +118,11 @@ namespace Dune {
if (i>0)
visitor.in(tree, treePath);
static const auto staticVisitChild = Visitor::template VisitChild<Tree,Child,TreePath>::value;
if constexpr (staticVisitChild)
if constexpr (staticVisitChild) {
auto childTreePath = TypeTree::push_back(treePath, i);
if (visitor.visitChild(child,childTreePath))
applyToTree(child, childTreePath, visitor);
}
visitor.afterChild(tree, child, treePath, i);
});
visitor.post(tree, treePath);
......
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