diff --git a/GraphicsView/demo/Segment_Delaunay_graph_2/include/CGAL/Constraints_loader.h b/GraphicsView/demo/Segment_Delaunay_graph_2/include/CGAL/Constraints_loader.h index 66899ca4237..2e2968b9679 100644 --- a/GraphicsView/demo/Segment_Delaunay_graph_2/include/CGAL/Constraints_loader.h +++ b/GraphicsView/demo/Segment_Delaunay_graph_2/include/CGAL/Constraints_loader.h @@ -9,7 +9,14 @@ #include #include +#include +#if BOOST_VERSION < 107200 #include +using boost::progress_display; +#else +#include +using boost::timer::progress_display; +#endif namespace CGAL { @@ -118,9 +125,9 @@ class Constraints_loader { std::cerr << " done (" << timer.time() << "s)\n"; std::cerr << "Inserting constraints...\n"; - boost::progress_display show_progress(constraints.size(), - std::cerr, - ""); + progress_display show_progress(constraints.size(), + std::cerr, + ""); timer.reset(); timer.start(); for(typename Constraints_container::const_iterator diff --git a/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/include/CGAL/Constraints_loader.h b/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/include/CGAL/Constraints_loader.h index 66899ca4237..2e2968b9679 100644 --- a/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/include/CGAL/Constraints_loader.h +++ b/GraphicsView/demo/Segment_Delaunay_graph_Linf_2/include/CGAL/Constraints_loader.h @@ -9,7 +9,14 @@ #include #include +#include +#if BOOST_VERSION < 107200 #include +using boost::progress_display; +#else +#include +using boost::timer::progress_display; +#endif namespace CGAL { @@ -118,9 +125,9 @@ class Constraints_loader { std::cerr << " done (" << timer.time() << "s)\n"; std::cerr << "Inserting constraints...\n"; - boost::progress_display show_progress(constraints.size(), - std::cerr, - ""); + progress_display show_progress(constraints.size(), + std::cerr, + ""); timer.reset(); timer.start(); for(typename Constraints_container::const_iterator diff --git a/Spatial_searching/benchmark/Spatial_searching/Compare_ANN_STANN_CGAL.cpp b/Spatial_searching/benchmark/Spatial_searching/Compare_ANN_STANN_CGAL.cpp index 776fe6240aa..c466b4e4c6d 100644 --- a/Spatial_searching/benchmark/Spatial_searching/Compare_ANN_STANN_CGAL.cpp +++ b/Spatial_searching/benchmark/Spatial_searching/Compare_ANN_STANN_CGAL.cpp @@ -5,7 +5,15 @@ #include #include #include + +#include +#if BOOST_VERSION < 107200 #include +using boost::progress_display; +#else +#include +using boost::timer::progress_display; +#endif #include #include @@ -115,7 +123,7 @@ int main(int argc,char** argv) double OK_tree=time.time(); time.reset(); -boost::progress_display show_progress( nb_queries ); + progress_display show_progress( nb_queries ); //running NN algorithms for (std::vector::const_iterator it=queries.begin();it!=queries.end();++it)