Skip to content

Commit

Permalink
avoid copying the iterator in case it is returned by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Jan 18, 2023
1 parent cd76994 commit 15b55bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Property_map/include/CGAL/property_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ struct Input_iterator_property_map{
/// Free function to use a get the value from an iterator using Input_iterator_property_map.
inline friend
reference
get(Input_iterator_property_map<InputIterator>,InputIterator it){ return *it; }
get(Input_iterator_property_map<InputIterator>, const InputIterator& it){ return *it; }
};

/// \ingroup PkgPropertyMapRef
Expand Down

0 comments on commit 15b55bd

Please sign in to comment.