Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
staging
dune-typetree
Commits
aafbf6b1
Commit
aafbf6b1
authored
Feb 02, 2021
by
Simon Praetorius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove warning: variable 'childTreePath' set but not used
parent
8e97e029
Pipeline
#33369
passed with stage
in 4 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dune/typetree/traversal.hh
dune/typetree/traversal.hh
+3
-2
No files found.
dune/typetree/traversal.hh
View file @
aafbf6b1
...
...
@@ -118,7 +118,6 @@ namespace Dune {
auto
indices
=
Dune
::
range
(
degree
);
Hybrid
::
forEach
(
indices
,
[
&
](
auto
i
)
{
auto
childTreePath
=
Dune
::
TypeTree
::
push_back
(
treePath
,
i
);
auto
&&
child
=
tree
.
child
(
i
);
using
Child
=
std
::
decay_t
<
decltype
(
child
)
>
;
...
...
@@ -129,8 +128,10 @@ namespace Dune {
if
(
i
>
0
)
visitor
.
in
(
tree
,
treePath
);
static
const
auto
visitChild
=
Visitor
::
template
VisitChild
<
Tree
,
Child
,
TreePath
>
::
value
;
if
constexpr
(
visitChild
)
if
constexpr
(
visitChild
)
{
auto
childTreePath
=
Dune
::
TypeTree
::
push_back
(
treePath
,
i
);
applyToTree
(
child
,
childTreePath
,
visitor
);
}
visitor
.
afterChild
(
tree
,
child
,
treePath
,
i
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment