From 0d2991f90336f38f26411b4778e70644cb4f5d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 12 Feb 2018 14:18:37 +0100 Subject: [PATCH] make dynamic properties working a better partial specialization is required as Dynamic_property_map provide a as good specialization otherwise --- .../CGAL/boost/graph/Face_filtered_graph.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/BGL/include/CGAL/boost/graph/Face_filtered_graph.h b/BGL/include/CGAL/boost/graph/Face_filtered_graph.h index 03a98f32ed8..ffaedbf181e 100644 --- a/BGL/include/CGAL/boost/graph/Face_filtered_graph.h +++ b/BGL/include/CGAL/boost/graph/Face_filtered_graph.h @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -1131,6 +1132,24 @@ struct property_map,Proper typedef typename boost::property_map::const_type const_type; }; +#define CGAL_FILTERED_FACE_GRAPH_DYNAMIC_PMAP_SPECIALIZATION(DYNAMIC_TAG) \ +template \ +struct property_map, CGAL::DYNAMIC_TAG > { \ + typedef typename boost::property_map >::type type; \ + typedef typename boost::property_map >::const_type const_type; \ +}; + +CGAL_FILTERED_FACE_GRAPH_DYNAMIC_PMAP_SPECIALIZATION(dynamic_vertex_property_t) +CGAL_FILTERED_FACE_GRAPH_DYNAMIC_PMAP_SPECIALIZATION(dynamic_edge_property_t) +CGAL_FILTERED_FACE_GRAPH_DYNAMIC_PMAP_SPECIALIZATION(dynamic_halfedge_property_t) +CGAL_FILTERED_FACE_GRAPH_DYNAMIC_PMAP_SPECIALIZATION(dynamic_face_property_t) + +#undef CGAL_FILTERED_FACE_GRAPH_DYNAMIC_PMAP_SPECIALIZATION + //specializations for indices