From 7f2b1b735c94c604996643f6c915d6209b0db958 Mon Sep 17 00:00:00 2001 From: mlaurent Date: Tue, 13 Jun 2023 15:15:00 +0200 Subject: [PATCH 1/1] Respect member order according to the initialisation order --- src/kernel/actor/CommObserver.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, -- 2.20.1