diff --git a/BGL/test/BGL/CMakeLists.txt b/BGL/test/BGL/CMakeLists.txt index 999e5f23493..2f5f338c03c 100644 --- a/BGL/test/BGL/CMakeLists.txt +++ b/BGL/test/BGL/CMakeLists.txt @@ -61,6 +61,8 @@ if(OpenMesh_FOUND) target_link_libraries( graph_concept_OpenMesh ${OPENMESH_LIBRARIES} ) endif() +create_single_source_cgal_program( "next.cpp" ) + create_single_source_cgal_program( "test_circulator.cpp" ) create_single_source_cgal_program( "graph_concept_Polyhedron_3.cpp" ) diff --git a/BGL/test/BGL/next.cpp b/BGL/test/BGL/next.cpp new file mode 100644 index 00000000000..e7c665dd1d7 --- /dev/null +++ b/BGL/test/BGL/next.cpp @@ -0,0 +1,64 @@ + +#include +#include +#include +#include + +typedef CGAL::Exact_predicates_exact_constructions_kernel K; +typedef K::Point_3 Point_3; +typedef CGAL::Surface_mesh SM; +typedef boost::graph_traits::halfedge_descriptor halfedge_descriptor; + + +namespace Toto { + + struct Graph {}; + + struct Descriptor{}; + + Descriptor next(const Descriptor& d, const Graph&) + { + return d; + } + +} + +namespace std { + + template <> + struct iterator_traits { + + }; +}; + + +namespace Nested { + void + gnu() + { + SM sm; + CGAL::make_triangle(Point_3(0,0,0), Point_3(1,0,0), Point_3(1,1,0),sm); + + halfedge_descriptor hd = *(halfedges(sm).first); + hd = next(hd,sm); + std::cout << hd; + } + + void + gnats() + { + Toto::Graph g; + Toto::Descriptor d; + d = next(d,g); + } + +} + +int main() +{ + Nested::gnu(); + + Nested::gnats(); + + return 0; +}