diff --git a/simplecpp.cpp b/simplecpp.cpp index fc145849..53baaa87 100644 --- a/simplecpp.cpp +++ b/simplecpp.cpp @@ -1031,8 +1031,7 @@ static bool isAlternativeAndBitandBitor(const simplecpp::Token* tok) void simplecpp::TokenList::combineOperators() { - std::stack executableScope; - executableScope.push(false); + std::stack> executableScope{{false}}; for (Token *tok = front(); tok; tok = tok->next) { if (tok->op == '{') { if (executableScope.top()) {