From b6273e0d62f981085feed4c54cc4ecfa3ce59784 Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 31 Oct 2021 17:02:44 +0100 Subject: [PATCH] Add an explicit return type to the nextAre function --- src/headers/parsing/Parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index a42a2ff..fb9bc0a 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -13,7 +13,7 @@ namespace Parser { using namespace StandardComponents; using enum tok::type; unsigned int i = 0; - const auto nextAre = [&i, &lexed] T>(const initializer_list& nextValues) { + const auto nextAre = [&i, &lexed] T>(const initializer_list& nextValues) -> bool { unsigned int j = 1; for (const T& nextValue: nextValues) { if (!cmp_greater(lexed.size() - i, nextValues.size()) || lexed[i + j].toktype != nextValue) {