Skip to content

Commit 3ef1187

Browse files
committed
use std::vector as underlying container for std::stack in simplecpp::TokenList::combineOperators()
1 parent 3c2a660 commit 3ef1187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ static bool isAlternativeAndBitandBitor(const simplecpp::Token* tok)
10311031

10321032
void simplecpp::TokenList::combineOperators()
10331033
{
1034-
std::stack<bool> executableScope;
1034+
std::stack<bool, std::vector<bool>> executableScope;
10351035
executableScope.push(false);
10361036
for (Token *tok = front(); tok; tok = tok->next) {
10371037
if (tok->op == '{') {

0 commit comments

Comments
 (0)