From 767a633b3913f6a12045ed1e91d96713c1586636 Mon Sep 17 00:00:00 2001 From: Arash Partow Date: Thu, 2 Jun 2016 08:57:54 +1000 Subject: [PATCH] C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html --- exprtk.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/exprtk.hpp b/exprtk.hpp index 5fe6d0a..a1d7366 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -3816,7 +3816,7 @@ namespace exprtk template class Container> inline bool token_is_then_assign(const token_t::token_type& ttype, Container& token_list, - const bool advance_token = true) + const token_advance_mode mode = e_advance) { if (current_token_.type != ttype) { @@ -3825,10 +3825,7 @@ namespace exprtk token_list.push_back(current_token_.value); - if (advance_token) - { - next_token(); - } + advance_token(mode); return true; }