Skip to content

Commit ec66b46

Browse files
committed
Remark
1 parent 0c29b04 commit ec66b46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ int main() {
9494
IntersectionFactory::getFromName("simd"); // using SIMD intersection
9595
//
9696
// we are going to intersect mydata and mydata2 and write back
97-
// the result to mydata2
97+
// the result to mydata2 (this is safe only if mydata2.size() <= mydata.size()),
98+
// please refer to the code.
9899
//
100+
std::cout << mydata2.size() << " " << mydata.size()<< std::endl;
99101
size_t intersize = inter(mydata2.data(), mydata2.size(), mydata.data(),
100102
mydata.size(), mydata2.data());
101103
mydata2.resize(intersize);

0 commit comments

Comments
 (0)