Add an explicit return type to the nextAre function

This commit is contained in:
Username404 2021-10-31 17:02:44 +01:00
parent d9b5e862fa
commit b6273e0d62
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ namespace Parser {
using namespace StandardComponents;
using enum tok::type;
unsigned int i = 0;
const auto nextAre = [&i, &lexed]<convertible_to<tok::type> T>(const initializer_list<T>& nextValues) {
const auto nextAre = [&i, &lexed]<convertible_to<tok::type> T>(const initializer_list<T>& nextValues) -> bool {
unsigned int j = 1;
for (const T& nextValue: nextValues) {
if (!cmp_greater(lexed.size() - i, nextValues.size()) || lexed[i + j].toktype != nextValue) {