Fixing build when C++17 is not present.
This commit is contained in:
parent
8f17815ca8
commit
7b04c215eb
1 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include "unicode.h"
|
#include "unicode.h"
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
static llama_grammar* build_grammar(const std::string & grammar_str) {
|
static llama_grammar* build_grammar(const std::string & grammar_str) {
|
||||||
auto parsed_grammar = grammar_parser::parse(grammar_str.c_str());
|
auto parsed_grammar = grammar_parser::parse(grammar_str.c_str());
|
||||||
|
@ -244,7 +245,9 @@ cons ::= [bcdfghjklmnpqrstvwxyz]
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const auto & test_datum : test_data) {
|
for (const auto & test_datum : test_data) {
|
||||||
const auto & [grammar_str, passing_strings, failing_strings] = test_datum;
|
const auto & grammar_str = std::get<0>(test_datum);
|
||||||
|
const auto & passing_strings = std::get<1>(test_datum);
|
||||||
|
const auto & failing_strings = std::get<2>(test_datum);
|
||||||
|
|
||||||
auto grammar = build_grammar(grammar_str);
|
auto grammar = build_grammar(grammar_str);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue