Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Use std::unique_ptr for States
[simgrid.git] / src / mc / SafetyChecker.hpp
index 1435182..4f60b79 100644 (file)
@@ -8,6 +8,7 @@
 #define SIMGRID_MC_SAFETY_CHECKER_HPP
 
 #include <list>
+#include <memory>
 
 #include "src/mc/mc_forward.hpp"
 #include "src/mc/Checker.hpp"
@@ -30,7 +31,7 @@ private:
   bool checkNonDeterminism(simgrid::mc::State* current_state);
 private:
   /** Stack representing the position in the exploration graph */
-  std::list<simgrid::mc::State*> stack_;
+  std::list<std::unique_ptr<simgrid::mc::State>> stack_;
   simgrid::mc::VisitedStates visitedStates_;
 };