Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Prefer C++ headers, and C++-style void-arg declarations.
[simgrid.git] / teshsuite / s4u / comm-get-sender / comm-get-sender.cpp
index 5ffdce4..28e7e71 100644 (file)
@@ -5,13 +5,13 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "simgrid/s4u.hpp"
-#include <float.h>
+#include <cfloat>
 XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Messages specific to this example");
 
 static void sender_fun()
 {
   XBT_INFO("Sending");
-  std::string* payload = new std::string("Blah");
+  auto* payload = new std::string("Blah");
   simgrid::s4u::Mailbox::by_name("Tremblay")->put(payload, 0);
   simgrid::s4u::this_actor::sleep_for(1.0);
   XBT_INFO("Exiting");