Unique_hash_map can not be specialized by Face_handle? #5961
-
I got a problem. I made a voronoi diagram with the voronoi library. Then I wanted to bind some data to "some special faces". A Face_handle can be created for me when I use the "locate" methed, Then, what should i do to bind data to it? Or is there a method to convert Face_handle to Face_iterator? Unique_hash_map can not be specialized by Face_handle. Face_iterator works well. ==! Or there is a special skill? Sorry for my poor English. Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I get it. The compilation error is:
The issue is that diff --git a/Voronoi_diagram_2/include/CGAL/Voronoi_diagram_2/Handle_adaptor.h b/Voronoi_diagram_2/include/CGAL/Voronoi_diagram_2/Handle_adaptor.h
index 91b5be76f09..8ed30759595 100644
--- a/Voronoi_diagram_2/include/CGAL/Voronoi_diagram_2/Handle_adaptor.h
+++ b/Voronoi_diagram_2/include/CGAL/Voronoi_diagram_2/Handle_adaptor.h
@@ -33,6 +33,8 @@ class Handle_adaptor
typedef T& reference;
typedef const T* const_pointer;
typedef const T& const_reference;
+ typedef void iterator_category;
+ typedef std::ptrdiff_t difference_type;
public:
Handle_adaptor() : t() {} Submitted as pull-request #5981. |
Beta Was this translation helpful? Give feedback.
I get it.
The compilation error is:
The issue is that
CG…