X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/652eb99105d979fcd897c2f26cfbce0f7d81ecd3..b66c18380daff78efdc5edf3f6b563b34f36bdfc:/include/xbt/functional.hpp 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) {