Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use typed Mailbox::get<>() instead of using static_cast everywhere.
[simgrid.git] / examples / s4u / actor-exiting / s4u-actor-exiting.cpp
index aa2215bea5b0af4ca46b2d67d5c54cecaa51e9a4..ecc2e95b7ac45615a212649baeeaa7c072d6f59f 100644 (file)
@@ -64,7 +64,7 @@ static void actor_c()
 
   simgrid::s4u::this_actor::sleep_for(3);
   XBT_INFO("And now, induce a deadlock by waiting for a message that will never come\n\n");
-  simgrid::s4u::Mailbox::by_name("nobody")->get();
+  simgrid::s4u::Mailbox::by_name("nobody")->get<void>();
   xbt_die("Receiving is not supposed to succeed when nobody is sending");
 }