From 189557bd74345590d3f5378c6e00cf1dad9778dc Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 13 Jan 2023 12:58:35 -0500 Subject: cmake: Make entire in-progress check stack available internally Represent it as a `vector` so we can iterate over the whole stack. --- Source/cmake.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/cmake.h b/Source/cmake.h index 10db87d..12160ad 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -472,13 +471,13 @@ public: } std::string GetTopCheckInProgressMessage() { - auto message = this->CheckInProgressMessages.top(); - this->CheckInProgressMessages.pop(); + auto message = this->CheckInProgressMessages.back(); + this->CheckInProgressMessages.pop_back(); return message; } void PushCheckInProgressMessage(std::string message) { - this->CheckInProgressMessages.emplace(std::move(message)); + this->CheckInProgressMessages.emplace_back(std::move(message)); } //! Should `message` command display context. @@ -773,7 +772,7 @@ private: bool LogLevelWasSetViaCLI = false; bool LogContext = false; - std::stack CheckInProgressMessages; + std::vector CheckInProgressMessages; std::unique_ptr GlobalGenerator; -- cgit v0.12