X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a16bea3df072e4a16c16bd12cf6b2f44b8b6ba5..b09912476f8c5e8e9c89abd2b533421163767192:/src/mc/api/strategy/WaitStrategy.hpp diff --git a/src/mc/api/strategy/WaitStrategy.hpp b/src/mc/api/strategy/WaitStrategy.hpp index ae549129f4..182411ec4d 100644 --- a/src/mc/api/strategy/WaitStrategy.hpp +++ b/src/mc/api/strategy/WaitStrategy.hpp @@ -17,7 +17,14 @@ class WaitStrategy : public Strategy { bool taking_wait_ = false; public: - void operator=(const WaitStrategy& guide) { taken_wait_ = guide.taken_wait_; } + WaitStrategy() = default; + ~WaitStrategy() = default; + WaitStrategy(const BasicStrategy&) = delete; + WaitStrategy& operator=(const WaitStrategy& guide) + { + taken_wait_ = guide.taken_wait_; + return *this; + } bool is_transition_wait(Transition::Type type) const {