really use the type of the returned expression

This commit is contained in:
Sébastien Loriot 2021-11-10 11:31:42 +01:00
parent 4eb1464aed
commit 833e51129f
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class Point_set_neighborhood
// we did not put `reference` here on purpose as the recommanded default // we did not put `reference` here on purpose as the recommanded default
// is `Identity_property_map<Point_3>` and not `Identity_property_map<const Point_3>` // is `Identity_property_map<Point_3>` and not `Identity_property_map<const Point_3>`
friend auto get (const My_point_property_map& ppmap, key_type i) friend decltype(auto) get (const My_point_property_map& ppmap, key_type i)
{ return get(ppmap.point_map, *(ppmap.input->begin()+std::size_t(i))); } { return get(ppmap.point_map, *(ppmap.input->begin()+std::size_t(i))); }
}; };

View File

@ -411,7 +411,7 @@ struct Property_map_to_unary_function{
{} {}
template <class KeyType> template <class KeyType>
auto decltype(auto)
operator()(const KeyType& a) const operator()(const KeyType& a) const
{ {
return get(map,a); return get(map,a);