From: Arnaud Giersch Date: Tue, 9 May 2023 14:27:35 +0000 (+0200) Subject: Use a std::vector as an underlying container for backtrack_points, so that maximal_su... X-Git-Tag: v3.34~131^2~3 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0d0539415f9e2f2a9acc20486cac1685e61c5801 Use a std::vector as an underlying container for backtrack_points, so that maximal_subsets_iterator can have a noexcept move constructor by default. --- diff --git a/src/mc/explo/udpor/maximal_subsets_iterator.hpp b/src/mc/explo/udpor/maximal_subsets_iterator.hpp index d172eda1a3..2c3c07f941 100644 --- a/src/mc/explo/udpor/maximal_subsets_iterator.hpp +++ b/src/mc/explo/udpor/maximal_subsets_iterator.hpp @@ -58,7 +58,7 @@ private: bool has_started_searching = false; std::optional maximum_subset_size = std::nullopt; std::optional current_maximal_set = std::nullopt; - std::stack backtrack_points = std::stack(); + std::stack> backtrack_points; /** * @brief A small class which provides functionality for managing