Skip to content

Commit

Permalink
changed tests to work with vector-vector and fixed variadic-fbi
Browse files Browse the repository at this point in the history
  • Loading branch information
Buote Xu authored and Buote Xu committed May 30, 2012
1 parent ebda51d commit 433759d
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 91 deletions.
4 changes: 2 additions & 2 deletions examples/example-bruker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,6 @@ int main(int argc, char * argv[]) {
std::cout << "finding connected components... ";
typedef SetA<Centroid, 1,0>::IntType LabelType;
std::vector<LabelType> labels;
//LabelType nComponents = findConnectedComponents(centroidResults, labels);
//std::cout << nComponents << " components found." << std::endl;
LabelType nComponents = findConnectedComponents(centroidResults, labels);
std::cout << nComponents << " components found." << std::endl;
}
2 changes: 1 addition & 1 deletion include/fbi/variadic/fbi.h
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ SetB {
);

#ifndef __LIBFBI_USE_SET_FOR_RESULT__
for (auto vec : resultVector) {
for (auto& vec : resultVector) {
std::sort(vec.begin(), vec.end());
vec.resize(std::unique(vec.begin(), vec.end()) - vec.begin());
}
Expand Down
Loading

0 comments on commit 433759d

Please sign in to comment.