X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e812e55c77db23ecbdf5e2ee284ec009ea936738..1738c10ed9593cdd280ec4d911902cd282fb5317:/examples/s4u/dht-chord/s4u-dht-chord.hpp diff --git a/examples/s4u/dht-chord/s4u-dht-chord.hpp b/examples/s4u/dht-chord/s4u-dht-chord.hpp index 4b9e85f8d6..d303e7fd76 100644 --- a/examples/s4u/dht-chord/s4u-dht-chord.hpp +++ b/examples/s4u/dht-chord/s4u-dht-chord.hpp @@ -22,7 +22,7 @@ extern int nb_keys; extern int timeout; /* Types of tasks exchanged between nodes. */ -enum e_message_type_t { +enum class MessageType { FIND_SUCCESSOR, FIND_SUCCESSOR_ANSWER, GET_PREDECESSOR, @@ -36,14 +36,14 @@ enum e_message_type_t { class ChordMessage { public: - e_message_type_t type; // type of message + MessageType type; // type of message std::string issuer_host_name = simgrid::s4u::this_actor::get_host()->get_name(); // used for logging int request_id = -1; // id (used by some types of messages) int request_finger = 1; // finger parameter (used by some types of messages) int answer_id = -1; // answer (used by some types of messages) simgrid::s4u::Mailbox* answer_to = nullptr; // mailbox to send an answer to (if any) - explicit ChordMessage(e_message_type_t type) : type(type) {} + explicit ChordMessage(MessageType type) : type(type) {} static void destroy(void* message); };