From e24150d9bd1766c8487e9ca9ddc349dcec7e9455 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 20 Apr 2022 09:15:26 +0100 Subject: [PATCH] Adress warning in progress.cpp --- Box_intersection_d/examples/Box_intersection_d/progress.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Box_intersection_d/examples/Box_intersection_d/progress.cpp b/Box_intersection_d/examples/Box_intersection_d/progress.cpp index bea94294a74..e47d6238b8f 100644 --- a/Box_intersection_d/examples/Box_intersection_d/progress.cpp +++ b/Box_intersection_d/examples/Box_intersection_d/progress.cpp @@ -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);