Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make simgrid::xbt::action_fs a std::unique_ptr.
[simgrid.git] / src / xbt / xbt_replay.cpp
index c75acf1..254de60 100644 (file)
@@ -14,7 +14,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(replay,xbt,"Replay trace reader");
 namespace simgrid {
 namespace xbt {
 
-std::ifstream* action_fs = nullptr;
+std::unique_ptr<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;