Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add missing override
authorFred Suter <suterf@ornl.gov>
Mon, 22 May 2023 19:21:41 +0000 (15:21 -0400)
committerFred Suter <suterf@ornl.gov>
Mon, 22 May 2023 19:21:41 +0000 (15:21 -0400)
include/simgrid/s4u/Comm.hpp
include/simgrid/s4u/Exec.hpp
include/simgrid/s4u/Io.hpp

index 391b126..366d38b 100644 (file)
@@ -51,7 +51,7 @@ public:
   static void on_send_cb(const std::function<void(Comm const&)>& cb) { on_send.connect(cb); }
   static void on_recv_cb(const std::function<void(Comm const&)>& cb) { on_recv.connect(cb); }
   static void on_start_cb(const std::function<void(Comm const&)>& cb) { on_start.connect(cb); }
-  void fire_this_completion() const { on_completion(*this); }
+  void fire_this_completion() const override { on_completion(*this); }
   /* More callbacks */
   CommPtr set_copy_data_callback(const std::function<void(kernel::activity::CommImpl*, void*, size_t)>& callback);
   XBT_ATTRIB_DEPRECATED_v337("Please manifest if you actually need this function") static void copy_buffer_callback(
index bf5898d..d37b2c6 100644 (file)
@@ -52,7 +52,7 @@ public:
 #endif
   /*! Signal fired each time that an execution actually starts (no veto) */
   static void on_start_cb(const std::function<void(Exec const&)>& cb) { on_start.connect(cb); }
-  void fire_this_completion() const { on_completion(*this); }
+  void fire_this_completion() const override { on_completion(*this); }
 
   static ExecPtr init();
 
index 3cca8a7..a2babc9 100644 (file)
@@ -35,7 +35,7 @@ public:
   enum class OpType { READ, WRITE };
 
   static void on_start_cb(const std::function<void(Io const&)>& cb) { on_start.connect(cb); }
-  void fire_this_completion() const { on_completion(*this); }
+  void fire_this_completion() const override{ on_completion(*this); }
 
   static IoPtr init();
   /*! take a vector of s4u::IoPtr and return when one of them is finished.