X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4d7e424288e89fa5ecca566782704e6ea97d8766..039807fd1fb02afb72365fe19a6ad620d1bbf4c7:/examples/cpp/dht-kademlia/routing_table.hpp diff --git a/examples/cpp/dht-kademlia/routing_table.hpp b/examples/cpp/dht-kademlia/routing_table.hpp index a87fd2f2c8..de213a62c0 100644 --- a/examples/cpp/dht-kademlia/routing_table.hpp +++ b/examples/cpp/dht-kademlia/routing_table.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2021. The SimGrid Team. +/* Copyright (c) 2012-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -18,7 +18,11 @@ public: const unsigned int id_; // bucket id std::deque nodes_; // Nodes in the bucket. unsigned int getId() const { return id_; } - explicit Bucket(unsigned int id) noexcept : id_(id) {} + explicit Bucket(unsigned int id) : id_(id) {} + // Use rule-of-three, and implicitely disable the move constructor which cannot be 'noexcept' (as required by C++ Core + // Guidelines), due to the std::deque member. + Bucket(const Bucket&) = default; + ~Bucket() = default; }; /* Node routing table */