As BOOST_NO_CXX11_RANGE_BASED_FOR has been introduced with Boost 1.51

we need a CGAL macro
This commit is contained in:
Andreas Fabri 2014-07-03 09:24:20 +02:00
parent 00be4cd8fa
commit c726cedbbb
2 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,7 @@ void fct(const Polyhedron& p)
{ {
vertex_range vr(vertices(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; std::cout << "new for loop" << std::endl;
for(vertex_descriptor vd : vr){ for(vertex_descriptor vd : vr){
std::cout << vd->point() << std::endl; std::cout << vd->point() << std::endl;

View File

@ -83,6 +83,9 @@
// feature is not available, even if that is wrong. // 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 #if defined(BOOST_NO_0X_HDR_ARRAY) || BOOST_VERSION < 104000
#define CGAL_CFG_NO_CPP0X_ARRAY 1 #define CGAL_CFG_NO_CPP0X_ARRAY 1
#endif #endif