mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +08:00
Make operator lookup noexcept
This commit is contained in:
parent
5ba155e058
commit
73d543eef0
@ -1434,11 +1434,11 @@ namespace chaiscript
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_operator(const std::string &t_s) const {
|
bool is_operator(const std::string &t_s) const noexcept {
|
||||||
return std::any_of(m_operator_matches.begin(), m_operator_matches.end(),
|
return std::any_of(m_operator_matches.begin(), m_operator_matches.end(),
|
||||||
[t_s](const auto &opers) {
|
[&t_s](const auto &opers) {
|
||||||
return std::any_of(opers.begin(), opers.end(),
|
return std::any_of(opers.begin(), opers.end(),
|
||||||
[t_s](const utility::Static_String &s) {
|
[&t_s](const utility::Static_String &s) {
|
||||||
return t_s == s.c_str();
|
return t_s == s.c_str();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user