diff --git a/BGL/include/CGAL/boost/graph/iterator.h b/BGL/include/CGAL/boost/graph/iterator.h index 3721fa96150..9f1905f8835 100644 --- a/BGL/include/CGAL/boost/graph/iterator.h +++ b/BGL/include/CGAL/boost/graph/iterator.h @@ -34,26 +34,6 @@ namespace CGAL { namespace internal { -template -struct Opposite { - const G* g; - - Opposite() - : g(NULL) - {} - - Opposite(const G& g) - : g(&g) - {} - - typedef typename boost::graph_traits::halfedge_descriptor result_type; - typedef typename boost::graph_traits::halfedge_descriptor argument_type; - - result_type operator()(argument_type h) const - { - return opposite(h, *g); - } -}; template struct Edge { const G* g; @@ -496,11 +476,11 @@ class Halfedge_around_target_circulator; template class Halfedge_around_source_circulator #ifndef DOXYGEN_RUNNING - : public boost::transform_iterator, Halfedge_around_target_circulator > + : public boost::transform_iterator, Halfedge_around_target_circulator > #endif { #ifndef DOXYGEN_RUNNING - typedef boost::transform_iterator, Halfedge_around_target_circulator > Base; + typedef boost::transform_iterator, Halfedge_around_target_circulator > Base; typedef typename boost::graph_traits::halfedge_descriptor halfedge_descriptor; typedef typename boost::graph_traits::vertex_descriptor vertex_descriptor; #endif @@ -516,11 +496,11 @@ public: {} Halfedge_around_source_circulator(halfedge_descriptor hd, const Graph& g) - : Base(Halfedge_around_target_circulator(hd,g), internal::Opposite(g)) + : Base(Halfedge_around_target_circulator(hd,g), internal::OppositeHalfedge(g)) {} Halfedge_around_source_circulator(vertex_descriptor vd, const Graph& g) - : Base(Halfedge_around_target_circulator(halfedge(vd,g),g), internal::Opposite(g)) + : Base(Halfedge_around_target_circulator(halfedge(vd,g),g), internal::OppositeHalfedge(g)) {} };