diff --git a/geometry/graham_scan_functions.hpp b/geometry/graham_scan_functions.hpp index 9a92919eb..06cd4259c 100644 --- a/geometry/graham_scan_functions.hpp +++ b/geometry/graham_scan_functions.hpp @@ -63,7 +63,7 @@ namespace geometry::grahamscan { * @param S Stack to be used for the process. * @returns @param Point Co-ordinates of the Point *******************************************************************************/ - Point nextToTop(std::stack &S) { + Point nextToTop(const std::stack &S) { Point p = S.top(); S.pop(); Point res = S.top();