From 287fbcf12caad62a09db34f1b0db8fa25a86ecc7 Mon Sep 17 00:00:00 2001 From: Serge Aleynikov Date: Sat, 9 Jan 2021 01:57:44 -0500 Subject: [PATCH] Fix compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: assignment of read-only member ‘exprtk::parser::type_checker::default_return_type_’ [build] 24408 | default_return_type_ = return_type; [build] | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ --- exprtk.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exprtk.hpp b/exprtk.hpp index 3f057b8..47fc76a 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -24403,9 +24403,9 @@ namespace exprtk parse_function_prototypes(func_prototypes); } - void set_default_return_type(const std::string& return_type) + void set_default_return_type(const return_type_t return_type) { - default_return_type_ = return_type; + const_cast(default_return_type_) = return_type; } bool verify(const std::string& param_seq, std::size_t& pseq_index)