From 126635d3a89d23766ad90e1c82f37f5250e57176 Mon Sep 17 00:00:00 2001 From: Dmitriy Morozov Date: Tue, 9 Aug 2016 12:52:52 -0700 Subject: [PATCH] Store a copy of the skip functor in SkipInactiveOr (fixes a bug in the delayed execution mode) --- include/diy/reduce.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/diy/reduce.hpp b/include/diy/reduce.hpp index 4810942ff..c93f66a58 100644 --- a/include/diy/reduce.hpp +++ b/include/diy/reduce.hpp @@ -199,7 +199,7 @@ namespace detail bool operator()(int i, const Master& master) const { return !partners.active(round, master.gid(i), master) || skip(round, i, master); } int round; const Partners& partners; - const Skip& skip; + Skip skip; }; }