diff --git a/src/headers/parsing/ReservedIdentifiers.hpp b/src/headers/parsing/ReservedIdentifiers.hpp index 3bc29d1..fed4b5c 100644 --- a/src/headers/parsing/ReservedIdentifiers.hpp +++ b/src/headers/parsing/ReservedIdentifiers.hpp @@ -19,7 +19,9 @@ inline const char* ID(const ReservedIdentifier& identifier) { } bool reserved(const string_view words) { - return find(identifiers.cbegin(), identifiers.cend(), words) != identifiers.cend(); + return any_of(identifiers.cbegin(), identifiers.cend(), [&words](const auto& identifier) { + return words == identifier; + }); } #endif //YERBACON_RESERVEDIDENTIFIERS_HPP