Add an explicit return type to the nextAre function
This commit is contained in:
parent
d9b5e862fa
commit
b6273e0d62
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue