X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8f58249ee1e3d4fff121c049fc018bf6fa9555a8..39e98567c557d81dd5011b8e2ae883d4674b0c9d:/doc/doxygen/uhood_switch.doc diff --git a/doc/doxygen/uhood_switch.doc b/doc/doxygen/uhood_switch.doc index 7cd30d079f..98d55a9c47 100644 --- a/doc/doxygen/uhood_switch.doc +++ b/doc/doxygen/uhood_switch.doc @@ -336,7 +336,6 @@ struct s_smx_simcall { union u_smx_scalar result; // Some additional stuff: smx_timer_t timer; - int mc_value; }; @endcode @@ -412,7 +411,7 @@ type and properly handles exceptions: @code{cpp} template -typename std::result_of::type kernelImmediate(F&& code) +typename std::result_of_t kernelImmediate(F&& code) { // If we are in the simulation kernel, we take the fast path and // execute the code directly without simcall @@ -422,7 +421,7 @@ typename std::result_of::type kernelImmediate(F&& code) // If we are in the application, pass the code to the simulation // kernel which executes it for us and reports the result: - typedef typename std::result_of::type R; + typedef typename std::result_of_t R; simgrid::xbt::Result result; simcall_run_kernel([&]{ xbt_assert(SIMIX_is_maestro(), "Not in maestro"); @@ -439,9 +438,9 @@ Example of usage: @code{cpp} xbt_dict_t Host::properties() { return simgrid::simix::kernelImmediate([&] { - simgrid::surf::HostImpl* surf_host = - this->extension(); - return surf_host->getProperties(); + simgrid::kernel::resource::HostImpl* host = + this->extension(); + return host->getProperties(); }); } @endcode