Fix compilation error

error: assignment of read-only member ‘exprtk::parser<double>::type_checker::default_return_type_’
[build] 24408 |             default_return_type_ = return_type;
[build]       |             ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
This commit is contained in:
Serge Aleynikov 2021-01-09 01:57:44 -05:00
parent fe9c77fc5a
commit 287fbcf12c
1 changed files with 2 additions and 2 deletions

View File

@ -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<return_type_t&>(default_return_type_) = return_type;
}
bool verify(const std::string& param_seq, std::size_t& pseq_index)