Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enforce "Rule-of-Three/Five".
[simgrid.git] / examples / s4u / dht-kademlia / message.hpp
index 910be6a..04306c0 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012, 2014-2016. The SimGrid Team.
+/* Copyright (c) 2012-2019. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -6,11 +6,10 @@
 
 #ifndef _KADEMLIA_TASK_HPP_
 #define _KADEMLIA_TASK_HPP_
-#include "answer.hpp"
+#include "s4u-dht-kademlia.hpp"
 #include "simgrid/s4u.hpp"
 
 namespace kademlia {
-class Answer;
 
 class Message {
 public:
@@ -34,6 +33,8 @@ public:
       : Message(sender_id, destination_id, nullptr, mailbox, hostname)
   {
   }
+  Message(const Message&) = delete;
+  Message& operator=(const Message&) = delete;
   ~Message()
   {
     if (issuer_host_name_)