Skip to content

Commit

Permalink
stop using structured bindings to conform C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
wx257osn2 committed Jul 19, 2022
1 parent 00f7bbd commit 95cdc29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_cppcontrib_sa_decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ std::vector<float> generate(const size_t n, const size_t d) {
template <typename T>
void test(const uint64_t n, const uint64_t d, const std::string& description) {
auto data = generate(n, d);
auto [index, encodedData] = trainDataset(data, n, d, description);
std::shared_ptr<faiss::Index> index;
std::vector<uint8_t> encodedData;
std::tie(index, encodedData) = trainDataset(data, n, d, description);

verify<T>(n, d, index, encodedData);
}
Expand Down

0 comments on commit 95cdc29

Please sign in to comment.