@@ -16732,7 +16732,7 @@ namespace exprtk
1673216732 return (*this);
1673316733 }
1673416734
16735- inline bool operator==(const symbol_table<T>& st)
16735+ inline bool operator==(const symbol_table<T>& st) const
1673616736 {
1673716737 return (this == &st) || (control_block_ == st.control_block_);
1673816738 }
@@ -17729,7 +17729,7 @@ namespace exprtk
1772917729 return *this;
1773017730 }
1773117731
17732- inline bool operator==(const expression<T>& e)
17732+ inline bool operator==(const expression<T>& e) const
1773317733 {
1773417734 return (this == &e);
1773517735 }
@@ -18516,7 +18516,7 @@ namespace exprtk
1851618516 {
1851718517 parser_.state_.scope_depth++;
1851818518 #ifdef exprtk_enable_debugging
18519- std::string depth(2 * parser_.state_.scope_depth,'-');
18519+ const std::string depth(2 * parser_.state_.scope_depth,'-');
1852018520 exprtk_debug(("%s> Scope Depth: %02d\n",
1852118521 depth.c_str(),
1852218522 static_cast<int>(parser_.state_.scope_depth)));
@@ -18528,7 +18528,7 @@ namespace exprtk
1852818528 parser_.sem_.deactivate(parser_.state_.scope_depth);
1852918529 parser_.state_.scope_depth--;
1853018530 #ifdef exprtk_enable_debugging
18531- std::string depth(2 * parser_.state_.scope_depth,'-');
18531+ const std::string depth(2 * parser_.state_.scope_depth,'-');
1853218532 exprtk_debug(("<%s Scope Depth: %02d\n",
1853318533 depth.c_str(),
1853418534 static_cast<int>(parser_.state_.scope_depth)));
@@ -20278,9 +20278,9 @@ namespace exprtk
2027820278 #ifdef exprtk_enable_debugging
2027920279 inline void next_token()
2028020280 {
20281- std::string ct_str = current_token().value;
20281+ const std::string ct_str = current_token().value;
2028220282 parser_helper::next_token();
20283- std::string depth(2 * state_.scope_depth,' ');
20283+ const std::string depth(2 * state_.scope_depth,' ');
2028420284 exprtk_debug(("%s"
2028520285 "prev[%s] --> curr[%s]\n",
2028620286 depth.c_str(),
@@ -20330,7 +20330,7 @@ namespace exprtk
2033020330
2033120331 end_token = current_token();
2033220332
20333- std::string sub_expr = construct_subexpr(begin_token,end_token);
20333+ const std::string sub_expr = construct_subexpr(begin_token, end_token);
2033420334
2033520335 exprtk_debug(("parse_corpus(%02d) Subexpr: %s\n",
2033620336 static_cast<int>(arg_list.size() - 1),
@@ -20539,7 +20539,7 @@ namespace exprtk
2053920539 else if (current_state.left < precedence)
2054020540 break;
2054120541
20542- lexer::token prev_token = current_token();
20542+ const lexer::token prev_token = current_token();
2054320543
2054420544 next_token();
2054520545
@@ -23955,9 +23955,9 @@ namespace exprtk
2395523955 }
2395623956
2395723957 if (
23958- !token_is(token_t::e_rbracket ,prsrhlpr_t::e_hold) &&
23959- !token_is(token_t::e_rcrlbracket,prsrhlpr_t::e_hold) &&
23960- !token_is(token_t::e_rsqrbracket,prsrhlpr_t::e_hold)
23958+ !token_is(token_t::e_rbracket , prsrhlpr_t::e_hold) &&
23959+ !token_is(token_t::e_rcrlbracket, prsrhlpr_t::e_hold) &&
23960+ !token_is(token_t::e_rsqrbracket, prsrhlpr_t::e_hold)
2396123961 )
2396223962 {
2396323963 if (!token_is(token_t::e_eof))
@@ -24243,9 +24243,9 @@ namespace exprtk
2424324243 }
2424424244
2424524245 if (
24246- !token_is(token_t::e_rbracket ,prsrhlpr_t::e_hold) &&
24247- !token_is(token_t::e_rcrlbracket,prsrhlpr_t::e_hold) &&
24248- !token_is(token_t::e_rsqrbracket,prsrhlpr_t::e_hold)
24246+ !token_is(token_t::e_rbracket , prsrhlpr_t::e_hold) &&
24247+ !token_is(token_t::e_rcrlbracket, prsrhlpr_t::e_hold) &&
24248+ !token_is(token_t::e_rsqrbracket, prsrhlpr_t::e_hold)
2424924249 )
2425024250 {
2425124251 if (!token_is(token_t::e_eof,prsrhlpr_t::e_hold))
@@ -24732,7 +24732,7 @@ namespace exprtk
2473224732 return error_node();
2473324733 }
2473424734
24735- lexer::token prev_token = current_token();
24735+ const lexer::token prev_token = current_token();
2473624736
2473724737 if (token_is(token_t::e_rsqrbracket))
2473824738 {
@@ -29295,7 +29295,7 @@ namespace exprtk
2929529295 typedef details::T0oT1oT2_base_node<Type>* sf3ext_base_ptr;
2929629296
2929729297 sf3ext_base_ptr n = static_cast<sf3ext_base_ptr>(sf3node);
29298- std::string id = "t" + expr_gen.to_str(operation) + "(" + n->type_id() + ")";
29298+ const std::string id = "t" + expr_gen.to_str(operation) + "(" + n->type_id() + ")";
2929929299
2930029300 switch (n->type())
2930129301 {
@@ -29338,7 +29338,7 @@ namespace exprtk
2933829338
2933929339 sf3ext_base_ptr n = static_cast<sf3ext_base_ptr>(sf3node);
2934029340
29341- std::string id = "(" + n->type_id() + ")" + expr_gen.to_str(operation) + "t";
29341+ const std::string id = "(" + n->type_id() + ")" + expr_gen.to_str(operation) + "t";
2934229342
2934329343 switch (n->type())
2934429344 {
@@ -36738,7 +36738,7 @@ namespace exprtk
3673836738 }
3673936739 }
3674036740
36741- bool eof()
36741+ bool eof() const
3674236742 {
3674336743 switch (mode)
3674436744 {
@@ -36749,7 +36749,7 @@ namespace exprtk
3674936749 }
3675036750 }
3675136751
36752- file_mode get_file_mode(const std::string& access)
36752+ file_mode get_file_mode(const std::string& access) const
3675336753 {
3675436754 if (access.empty() || access.size() > 2)
3675536755 return e_error;
0 commit comments