X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c312320c2e43da49b536c51a9d19b6ad6d66e489..874aec87c7ce1894a9f017d2adf07ce7b8abe71d:/src/mc/explo/odpor/WakeupTreeIterator.hpp?ds=inline diff --git a/src/mc/explo/odpor/WakeupTreeIterator.hpp b/src/mc/explo/odpor/WakeupTreeIterator.hpp index 32b968c9bd..e42184cbf4 100644 --- a/src/mc/explo/odpor/WakeupTreeIterator.hpp +++ b/src/mc/explo/odpor/WakeupTreeIterator.hpp @@ -26,10 +26,15 @@ namespace simgrid::mc::odpor { * This iterator provides such a postorder traversal over the nodes in the * wakeup tree. */ -struct WakeupTreeIterator +class WakeupTreeIterator : public boost::iterator_facade { public: - WakeupTreeIterator() = default; + // Use rule-of-three, and implicitely disable the move constructor which cannot be 'noexcept' (as required by C++ Core + // Guidelines), due to the std::list and std:stack members. + WakeupTreeIterator() = default; + WakeupTreeIterator(const WakeupTreeIterator&) = default; + ~WakeupTreeIterator() = default; + explicit WakeupTreeIterator(const WakeupTree& tree); private: