Edit the use of convertible_to in Parser.hpp
This commit is contained in:
parent
8cb72a9baa
commit
82d733af54
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user