Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Malfunctioning handle hash function

Subject: CGAL users discussion list

List archive

[cgal-discuss] Malfunctioning handle hash function


Chronological Thread 
  • From: Thorben Kröger <>
  • To:
  • Subject: [cgal-discuss] Malfunctioning handle hash function
  • Date: Tue, 10 Nov 2009 13:45:32 +0000

Hello,
I'm using a Polyhedron_3 datastructure and am putting Vertex_const_handles in
a hash structure like this:

typedef std::tr1::unordered_map<Vertex_const_handle, int,
CGAL::Handle_hash_function> Neighbours;

However, the CGAL::Handle_hash_function function does not seem to work, I get
random results that change between runs; while when I change that function to
return just a fixed integer, my program works as expected.

I got entangled in the CGAL template definitions, can someone help me to find
out what's wrong here? It looks like the hash function might compare the
address of temporaries or something...

Thanks,

Thorben



Archive powered by MHonArc 2.6.16.

Top of Page