X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/814b4af8e1656a989525ed0636b88d4e7c0b026c..7e625e5e848a284b522d69ec28cb111f1f88515b:/src/mc/explo/udpor/EventSet.cpp diff --git a/src/mc/explo/udpor/EventSet.cpp b/src/mc/explo/udpor/EventSet.cpp index feef1dd192..929234e2a0 100644 --- a/src/mc/explo/udpor/EventSet.cpp +++ b/src/mc/explo/udpor/EventSet.cpp @@ -14,7 +14,7 @@ namespace simgrid::mc::udpor { -EventSet::EventSet(Configuration&& config) : EventSet(config.get_events()) {} +EventSet::EventSet(const Configuration& config) : EventSet(config.get_events()) {} void EventSet::remove(const UnfoldingEvent* e) { @@ -220,7 +220,7 @@ std::vector EventSet::get_topological_ordering() const temporarily_marked_events.insert(evt); EventSet immediate_causes = evt->get_immediate_causes(); - if (!immediate_causes.empty() && immediate_causes.is_subset_of(temporarily_marked_events)) { + if (not immediate_causes.empty() && immediate_causes.is_subset_of(temporarily_marked_events)) { throw std::invalid_argument("Attempted to perform a topological sort on a configuration " "whose contents contain a cycle. The configuration (and the graph " "connecting all of the events) is an invalid event structure"); @@ -285,4 +285,4 @@ std::vector EventSet::move_into_vector() const&& return contents; } -} // namespace simgrid::mc::udpor \ No newline at end of file +} // namespace simgrid::mc::udpor