diff --git a/BGL/examples/BGL_polyhedron_3/range.cpp b/BGL/examples/BGL_polyhedron_3/range.cpp index cf22e6e1c33..a2214786b2a 100644 --- a/BGL/examples/BGL_polyhedron_3/range.cpp +++ b/BGL/examples/BGL_polyhedron_3/range.cpp @@ -39,7 +39,7 @@ void fct(const Polyhedron& p) { vertex_range vr(vertices(p)); -#ifndef BOOST_NO_CXX11_RANGE_BASED_FOR +#ifndef CGAL_NO_CPP0X_RANGE_BASED_FOR std::cout << "new for loop" << std::endl; for(vertex_descriptor vd : vr){ std::cout << vd->point() << std::endl; diff --git a/Installation/include/CGAL/config.h b/Installation/include/CGAL/config.h index 08d34cc5a28..7e71d2b4c36 100644 --- a/Installation/include/CGAL/config.h +++ b/Installation/include/CGAL/config.h @@ -83,6 +83,9 @@ // feature is not available, even if that is wrong. // ----------------------------------------------------------------------// +#if defined(BOOST_NO_CXX11_RANGE_BASED_FOR) || BOOST_VERSION < 105000 +#define CGAL_NO_CPP0X_RANGE_BASED_FOR 1 +#endif #if defined(BOOST_NO_0X_HDR_ARRAY) || BOOST_VERSION < 104000 #define CGAL_CFG_NO_CPP0X_ARRAY 1 #endif