From 79fc4933922edfb1eb6fe9dab24d3d887046cbce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Tue, 19 Oct 2021 16:07:44 +0200 Subject: [PATCH] Add a default constructor to Property_map_binder Needed for example if you need to default construct AABB traits with external pmaps that are Property_map_binders --- Property_map/include/CGAL/property_map.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Property_map/include/CGAL/property_map.h b/Property_map/include/CGAL/property_map.h index 90d8c6eba92..d693723f5e6 100644 --- a/Property_map/include/CGAL/property_map.h +++ b/Property_map/include/CGAL/property_map.h @@ -99,7 +99,8 @@ make_OR_property_map(const PM1& pm1, const PM2& pm2) // A property map that uses the result of a property map as key. template -struct Property_map_binder{ +struct Property_map_binder +{ typedef typename boost::property_traits::key_type key_type; typedef typename boost::property_traits::value_type value_type; typedef typename boost::property_traits::reference reference; @@ -108,6 +109,7 @@ struct Property_map_binder{ KeyMap key_map; ValueMap value_map; + Property_map_binder() { } Property_map_binder(const KeyMap& key_map, const ValueMap& value_map) : key_map(key_map) , value_map(value_map)