Skip to content

Commit 5a4288d

Browse files
committed
Fixing build when C++17 is not present.
1 parent 595449c commit 5a4288d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test-grammar-integration.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "unicode.h"
1111
#include <cassert>
1212
#include <string>
13+
#include <vector>
1314

1415
static llama_grammar* build_grammar(const std::string & grammar_str) {
1516
auto parsed_grammar = grammar_parser::parse(grammar_str.c_str());
@@ -244,7 +245,9 @@ cons ::= [bcdfghjklmnpqrstvwxyz]
244245
};
245246

246247
for (const auto & test_datum : test_data) {
247-
const auto & [grammar_str, passing_strings, failing_strings] = test_datum;
248+
const auto & grammar_str = std::get<0>(test_datum);
249+
const auto & passing_strings = std::get<1>(test_datum);
250+
const auto & failing_strings = std::get<2>(test_datum);
248251

249252
auto grammar = build_grammar(grammar_str);
250253

0 commit comments

Comments
 (0)