From: Gabriel Corona Date: Mon, 4 Jul 2016 08:37:46 +0000 (+0200) Subject: [xbt] Forgot to properly return the return value in Task X-Git-Tag: v3_14~816 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b66c18380daff78efdc5edf3f6b563b34f36bdfc?hp=59c7075d297be4567fc967eca7c34f8f937f567c [xbt] Forgot to properly return the return value in Task --- 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) {