X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/67a47b09732247bf5479bee8bb632d37499dca78..edada81d50549499871369f63a5ac01d652b283e:/include/simgrid/simix.hpp diff --git a/include/simgrid/simix.hpp b/include/simgrid/simix.hpp index 203d452305..a75c594261 100644 --- a/include/simgrid/simix.hpp +++ b/include/simgrid/simix.hpp @@ -43,7 +43,7 @@ namespace actor { * you may need to wait for that mutex to be unlocked by its current owner. * Potentially blocking simcall must be issued using simcall_blocking(), right below in this file. */ -template typename std::result_of::type simcall(F&& code, mc::SimcallInspector* t = nullptr) +template typename std::result_of_t simcall(F&& code, mc::SimcallInspector* t = nullptr) { // If we are in the maestro, we take the fast path and execute the // code directly without simcall marshalling/unmarshalling/dispatch: @@ -53,7 +53,7 @@ template typename std::result_of::type simcall(F&& code, mc::Simc // If we are in the application, pass the code to the maestro which // executes it for us and reports the result. We use a std::future which // conveniently handles the success/failure value for us. - using R = typename std::result_of::type; + using R = typename std::result_of_t; simgrid::xbt::Result result; simcall_run_kernel([&result, &code] { simgrid::xbt::fulfill_promise(result, std::forward(code)); }, t); return result.get();