From b66c18380daff78efdc5edf3f6b563b34f36bdfc Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Mon, 4 Jul 2016 10:37:46 +0200 Subject: [PATCH 1/1] [xbt] Forgot to properly return the return value in Task --- include/xbt/functional.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xbt/functional.hpp b/include/xbt/functional.hpp index 2429b5bf0a..5f530ea928 100644 --- a/include/xbt/functional.hpp +++ b/include/xbt/functional.hpp @@ -240,7 +240,7 @@ private: [](TaskUnion& buffer, Args... args) -> R { // Delete F when we go out of scope: std::unique_ptr code(*reinterpret_cast(&buffer)); - (*code)(std::forward(args)...); + return (*code)(std::forward(args)...); }, // Destroy: [](TaskUnion& buffer) { -- 2.20.1