From 0ba5eb38f9e6974271c5efa09438f11055820933 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sun, 28 Oct 2018 17:08:32 +0200 Subject: Fixed for increment step filling up the stack --- JSImpl/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'JSImpl/src/main.cpp') diff --git a/JSImpl/src/main.cpp b/JSImpl/src/main.cpp index 1cc7de8..3fe6f99 100644 --- a/JSImpl/src/main.cpp +++ b/JSImpl/src/main.cpp @@ -19,8 +19,8 @@ void RunParseCalc() auto result = i.Run(expr.get()); std::cout << "Stack after run, top to bottom:" << std::endl; while (!result.empty()) { - std::cout << result.top() << std::endl; - result.pop(); + std::cout << result.back() << std::endl; + result.pop_back(); } std::cout << "S = " << i.ModifyVariable("s") << std::endl; } -- cgit v1.3.1-23-gd82d