Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Malfunctioning handle hash function


Chronological Thread 
  • From: Thorben Kröger <>
  • To:
  • Subject: Re: [cgal-discuss] Malfunctioning handle hash function
  • Date: Wed, 11 Nov 2009 12:36:22 +0000

Sorry for the noise, it turns out the error was somewhere else...

On Tuesday 10 November 2009 13:45:32 Thorben Kröger wrote:
> 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