mirror of https://github.com/CGAL/cgal
really use the type of the returned expression
This commit is contained in:
parent
4eb1464aed
commit
833e51129f
|
|
@ -75,7 +75,7 @@ class Point_set_neighborhood
|
|||
|
||||
// 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>`
|
||||
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))); }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -411,7 +411,7 @@ struct Property_map_to_unary_function{
|
|||
{}
|
||||
|
||||
template <class KeyType>
|
||||
auto
|
||||
decltype(auto)
|
||||
operator()(const KeyType& a) const
|
||||
{
|
||||
return get(map,a);
|
||||
|
|
|
|||
Loading…
Reference in New Issue