mirror of https://github.com/CGAL/cgal
As BOOST_NO_CXX11_RANGE_BASED_FOR has been introduced with Boost 1.51
we need a CGAL macro
This commit is contained in:
parent
00be4cd8fa
commit
c726cedbbb
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue