From 33ccd0526979d79d5d66f660931d70a96df39646 Mon Sep 17 00:00:00 2001 From: Serge Aleynikov Date: Sat, 9 Jan 2021 02:06:43 -0500 Subject: [PATCH] Fix compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit exprtk.hpp:17381:35: error: no matching function for call to ‘exprtk::symbol_table::type_store::remove, exprtk::ivararg_function >::deleter::process(std::pair*>&)’ [build] 17381 | deleter::process((*itr).second); [build] | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ [build] exprtk.hpp:17371:38: note: candidate: ‘static void exprtk::symbol_table::type_store::remove(const string&, bool)::deleter::process(std::pair*>&) [with Type = exprtk::ivararg_function; RawType = exprtk::ivararg_function; T = double]’ [build] 17371 | static inline void process(std::pair& n) { delete n.second; } --- exprtk.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/exprtk.hpp b/exprtk.hpp index 3f057b8..e2623ea 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -17368,12 +17368,13 @@ namespace exprtk { struct deleter { - static inline void process(std::pair& n) { delete n.second; } - static inline void process(std::pair& n) { delete n.second; } + static inline void process(std::pair& n) { delete n.second; } + static inline void process(std::pair& n) { delete n.second; } + static inline void process(std::pair& n) { delete n.second; } #ifndef exprtk_disable_string_capabilities - static inline void process(std::pair& n) { delete n.second; } + static inline void process(std::pair& n) { delete n.second; } #endif - static inline void process(std::pair&) { } + static inline void process(std::pair&) { } }; if (delete_node)