get_error can be const

This commit is contained in:
schoetbi 2019-03-01 12:53:58 +01:00
parent e0e880c379
commit 255e721561
1 changed files with 1 additions and 1 deletions

View File

@ -20262,7 +20262,7 @@ namespace exprtk
return settings_;
}
inline parser_error::type get_error(const std::size_t& index)
inline parser_error::type get_error(const std::size_t& index) const
{
if (index < error_list_.size())
return error_list_[index];