From 53c5a173c1888465cf523bcacc9910d0ea5521f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20L=C3=BCke?= Date: Fri, 25 May 2018 09:46:35 +0200 Subject: [PATCH] make symbol_exists() check the vector store --- exprtk.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exprtk.hpp b/exprtk.hpp index f55657a..d5c480a 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -17337,8 +17337,8 @@ namespace exprtk { /* Function will return true if symbol_name exists as either a - reserved symbol, variable, stringvar or function name in any - of the type stores. + reserved symbol, variable, stringvar, vector or function name in + any of the type stores. */ if (!valid()) return false; @@ -17348,6 +17348,8 @@ namespace exprtk else if (local_data().stringvar_store.symbol_exists(symbol_name)) return true; #endif + else if (local_data().vector_store.symbol_exists(symbol_name)) + return true; else if (local_data().function_store.symbol_exists(symbol_name)) return true; else if (check_reserved_symb && local_data().is_reserved_symbol(symbol_name))