From: mlaurent Date: Tue, 13 Jun 2023 13:15:00 +0000 (+0200) Subject: Respect member order according to the initialisation order X-Git-Tag: v3.35~164^2~8 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7f2b1b735c94c604996643f6c915d6209b0db958?hp=0e8603d2d56c545fae09fad07d2312450e305470 Respect member order according to the initialisation order --- diff --git a/src/kernel/actor/CommObserver.hpp b/src/kernel/actor/CommObserver.hpp index 6647d430cb..0fbd7973eb 100644 --- a/src/kernel/actor/CommObserver.hpp +++ b/src/kernel/actor/CommObserver.hpp @@ -95,12 +95,13 @@ class CommIsendSimcall final : public SimcallObserver { bool detached_; activity::CommImpl* comm_ = {}; int tag_ = {}; - std::string fun_call_; std::function match_fun_; std::function clean_fun_; // used to free the synchro in case of problem after a detached send std::function copy_data_fun_; // used to copy data if not default one + std::string fun_call_; + public: CommIsendSimcall( ActorImpl* actor, activity::MailboxImpl* mbox, double payload_size, double rate, unsigned char* src_buff, @@ -148,11 +149,12 @@ class CommIrecvSimcall final : public SimcallObserver { double rate_; activity::CommImpl* comm_ = {}; int tag_ = {}; - std::string fun_call_; std::function match_fun_; std::function copy_data_fun_; // used to copy data if not default one + std::string fun_call_; + public: CommIrecvSimcall(ActorImpl* actor, activity::MailboxImpl* mbox, unsigned char* dst_buff, size_t* dst_buff_size, const std::function& match_fun,