From bb1e4c31a3ca18d27e2c6162d72a20a0cbcd8d17 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Thu, 10 Jun 2021 11:18:19 +0200 Subject: [PATCH] Fix -Wshadow warning --- exprtk.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exprtk.hpp b/exprtk.hpp index 142b4c3..5afda56 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -17318,7 +17318,7 @@ namespace exprtk (symbol_name, v, is_const); } - inline bool add(const std::string& symbol_name, RawType& t, const bool is_const = false) + inline bool add(const std::string& symbol_name, RawType& t2, const bool is_const2 = false) { struct tie { @@ -17354,7 +17354,7 @@ namespace exprtk if (map.end() == itr) { - map[symbol_name] = tie::make(t,is_const); + map[symbol_name] = tie::make(t2,is_const2); ++size; }