Skip to content

Commit d6e5be2

Browse files
anweshtfacebook-github-bot
authored andcommitted
Fix forwarding in AbstractTreeDomain in place collapse at path
Summary: As titled. Reviewed By: arthaud Differential Revision: D71488494 fbshipit-source-id: 8531237cc34c6415c825e2dab034adf1d866f2d5
1 parent fc1700d commit d6e5be2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/AbstractTreeDomain.h

+7-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include <sparta/AbstractDomain.h>
1818
#include <sparta/PatriciaTreeMap.h>
19+
#include <sparta/PerfectForwardCapture.h>
1920

2021
#include <Show.h>
2122

@@ -669,9 +670,13 @@ class AbstractTreeDomain final
669670
++begin;
670671

671672
children_.update(
672-
[begin, end, height, transform = std::forward<Transform>(transform)](
673+
[begin,
674+
end,
675+
height,
676+
transform = sparta::fwd_capture(std::forward<Transform>(transform))](
673677
AbstractTreeDomain subtree) {
674-
subtree.collapse_deeper_than_internal(begin, end, height, transform);
678+
subtree.collapse_deeper_than_internal(
679+
begin, end, height, transform.get());
675680
return subtree;
676681
},
677682
path);

0 commit comments

Comments
 (0)