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 namespace StandardComponents;
|
||||||
using enum tok::type;
|
using enum tok::type;
|
||||||
unsigned int i = 0;
|
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;
|
unsigned int j = 1;
|
||||||
for (const T& nextValue: nextValues) {
|
for (const T& nextValue: nextValues) {
|
||||||
if (!cmp_greater(lexed.size() - i, nextValues.size()) || lexed[i + j].toktype != nextValue) {
|
if (!cmp_greater(lexed.size() - i, nextValues.size()) || lexed[i + j].toktype != nextValue) {
|
||||||
|
Loading…
Reference in New Issue
Block a user