From 5b61aa18a87747a0b5d36b2cc455eae08a84d919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 30 Nov 2016 08:48:22 +0100 Subject: [PATCH] workaroung a bug in g++ 4.4 --- .../graph_traits_Triangulation_data_structure_2.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Triangulation_2/include/CGAL/boost/graph/graph_traits_Triangulation_data_structure_2.h b/Triangulation_2/include/CGAL/boost/graph/graph_traits_Triangulation_data_structure_2.h index 7d8464975e9..eb5d8493370 100644 --- a/Triangulation_2/include/CGAL/boost/graph/graph_traits_Triangulation_data_structure_2.h +++ b/Triangulation_2/include/CGAL/boost/graph/graph_traits_Triangulation_data_structure_2.h @@ -308,6 +308,21 @@ public: } // namespace detail } // namespace CGAL +namespace std{ + +// workaround a bug detected on at least g++ 4.4 where boost::next(Iterator) +// is picked as a candidate for next(h,g) +template +struct iterator_traits< CGAL::detail::TDS2_halfedge_descriptor > +{ + typedef void* iterator_category; + typedef void* difference_type; + typedef void* value_type; + typedef void* reference; +}; + +} // end of namespace std + namespace boost { template