Edit the use of convertible_to in Parser.hpp

This commit is contained in:
Username404 2021-09-18 16:34:01 +02:00
parent 8cb72a9baa
commit 82d733af54
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

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