Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable unused copy constructors (and please cppcheck).
[simgrid.git] / examples / s4u / dht-kademlia / node.hpp
index 10625d0..178f380 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012, 2014-2017. The SimGrid Team.
+/* Copyright (c) 2012, 2014-2018. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -22,6 +22,8 @@ public:
   unsigned int find_node_success = 0; // Number of find_node which have succeeded.
   unsigned int find_node_failed  = 0; // Number of find_node which have failed.
   explicit Node(unsigned int node_id) : id_(node_id), table(new RoutingTable(node_id)), receive_comm(nullptr) {}
+  Node(const Node&) = delete;
+  Node& operator=(const Node&) = delete;
   ~Node() { delete table; }
   unsigned int getId() { return id_; }