Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Constify attribute.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 Apr 2018 08:45:55 +0000 (10:45 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 Apr 2018 13:01:33 +0000 (15:01 +0200)
src/smpi/internals/smpi_replay.cpp

index 278f0a5..d38d6f9 100644 (file)
@@ -394,10 +394,9 @@ public:
 template <class T> class ReplayAction {
 protected:
   const std::string name;
+  const int my_proc_id;
   T args;
 
-  int my_proc_id;
-
 public:
   explicit ReplayAction(std::string name) : name(name), my_proc_id(simgrid::s4u::this_actor::getPid()) {}
   virtual ~ReplayAction() = default;