mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-06 05:49:24 +08:00
0c5d8660aa
issue: https://github.com/milvus-io/milvus/issues/27704 --------- Signed-off-by: longjiquan <jiquan.long@zilliz.com>
18 lines
346 B
C++
18 lines
346 B
C++
#include <string>
|
|
#include <vector>
|
|
|
|
#include "tantivy-binding.h"
|
|
|
|
int
|
|
main(int argc, char* argv[]) {
|
|
std::vector<std::string> data{"data1", "data2", "data3"};
|
|
std::vector<const char*> datas{};
|
|
for (auto& s : data) {
|
|
datas.push_back(s.c_str());
|
|
}
|
|
|
|
print_vector_of_strings(datas.data(), datas.size());
|
|
|
|
return 0;
|
|
}
|