C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html

This commit is contained in:
Arash Partow 2015-04-26 01:29:38 +10:00
parent 9aecd7592a
commit 93ecfe2a1f
1 changed files with 6 additions and 1 deletions

View File

@ -19309,7 +19309,12 @@ namespace exprtk
return error_node();
}
expression_node_ptr default_statement = parse_multi_sequence("switch-default");
expression_node_ptr default_statement = error_node();
if (token_is(token_t::e_lcrlbracket,false))
default_statement = parse_multi_sequence("switch-default");
else
default_statement = parse_expression();
if (0 == default_statement)
return error_node();