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
This commit is contained in:
Mael Rouxel-Labbé 2021-10-19 16:07:44 +02:00
parent b7e688cc94
commit 79fc493392
1 changed files with 3 additions and 1 deletions

View File

@ -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 <class KeyMap, class ValueMap>
struct Property_map_binder{
struct Property_map_binder
{
typedef typename boost::property_traits<KeyMap>::key_type key_type;
typedef typename boost::property_traits<ValueMap>::value_type value_type;
typedef typename boost::property_traits<ValueMap>::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)