Update geometry/graham_scan_functions.hpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Lajat5 2021-11-04 10:53:54 +05:30 committed by GitHub
parent 6be4aaf0e5
commit a16bf9b6ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ namespace geometry::grahamscan {
* @param S Stack to be used for the process.
* @returns @param Point Co-ordinates of the Point <int, int>
*******************************************************************************/
Point nextToTop(std::stack<Point> &S) {
Point nextToTop(const std::stack<Point> &S) {
Point p = S.top();
S.pop();
Point res = S.top();