Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move variable definition in cpp file.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 29 Mar 2018 19:38:58 +0000 (21:38 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 30 Mar 2018 06:57:07 +0000 (08:57 +0200)
include/xbt/replay.hpp
src/xbt/xbt_replay.cpp

index a83d442..0658148 100644 (file)
@@ -19,7 +19,6 @@ namespace simgrid {
 namespace xbt {
 /* To split the file if a unique one is given (specific variable for the other case live in runner()) */
 typedef std::vector<std::string> ReplayAction;
-static std::unordered_map<std::string, std::queue<ReplayAction*>*> action_queues;
 
 XBT_PUBLIC_DATA std::ifstream* action_fs;
 XBT_PUBLIC int replay_runner(int argc, char* argv[]);
index 99fe837..a266f7e 100644 (file)
@@ -17,6 +17,7 @@ namespace xbt {
 
 std::ifstream* action_fs = nullptr;
 std::unordered_map<std::string, action_fun> action_funs;
+static std::unordered_map<std::string, std::queue<ReplayAction*>*> action_queues;
 
 static void read_and_trim_line(std::ifstream* fs, std::string* line)
 {