Adress warning in progress.cpp

This commit is contained in:
Andreas Fabri 2022-04-20 09:15:26 +01:00
parent 6260d5a4e4
commit e24150d9bd
1 changed files with 2 additions and 4 deletions

View File

@ -57,7 +57,7 @@ struct Callback {
void operator()( const Box& a, const Box& b ) {
++(sptr->count);
// std::cout << "box " << a.id() << " intersects box " << b.id() << std::endl;
std::cout << "box " << a.id() << " intersects box " << b.id() << std::endl;
}
@ -81,7 +81,7 @@ struct Callback {
int main(int argc, char* argv[]) {
int n = (argc>1)?std::atoi(argv[1]): 100;
int n = (argc>1)?std::atoi(argv[1]): 5;
int blx = (argc>2)?std::atoi(argv[2]): 1;
int bly = (argc>2)?std::atoi(argv[3]): 1;
@ -89,8 +89,6 @@ int main(int argc, char* argv[]) {
fill(boxes, 0, 0, n);
fill(queries, blx, bly, n);
std::ptrdiff_t cutoff = 1;
Callback callback(2.); // because we call segment_tree twice
CGAL::box_intersection_d( boxes.begin(), boxes.end(), queries.begin(), queries.end(), callback);