Skip to Content.
Sympa Menu

cgal-discuss - shadowed variables

Subject: CGAL users discussion list

List archive

shadowed variables


Chronological Thread 
  • From: Edoardo Milotti <>
  • To:
  • Subject: shadowed variables
  • Date: Wed, 19 Mar 2008 16:25:52 +0100

I am using the following list of includes in a program that computes a hierarchical Delaunay triangulation 



#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Delaunay_triangulation_3.h>
#include <CGAL/Triangulation_hierarchy_3.h>

#include <CGAL/Triangulation_vertex_base_with_info_3.h>

typedef CGAL::Exact_predicates_inexact_constructions_kernel K;

typedef CGAL::Triangulation_vertex_base_with_info_3<int, K> Vb;
typedef CGAL::Triangulation_hierarchy_vertex_base_3<Vb>  Vbh;
typedef CGAL::Triangulation_data_structure_3<Vbh>        Tds;
typedef CGAL::Delaunay_triangulation_3<K,Tds>            Dt;
typedef CGAL::Triangulation_hierarchy_3<Dt>              Dh;

typedef Dh::Finite_vertices_iterator Finite_vertices_iterator;
typedef Dh::Vertex_handle            Vertex_handle;
typedef Dh::Point                    Point;



Many variables are shadowed locally. Is this normal? Is it dangerous for program reliability? 

Thank you. 

Edoardo Milotti



  • shadowed variables, Edoardo Milotti, 03/19/2008

Archive powered by MHonArc 2.6.16.

Top of Page