From 888c78c732136a671754db79cd6b5fe8bced2aa9 Mon Sep 17 00:00:00 2001 From: aortigos Date: Mon, 23 Mar 2026 14:51:35 +0100 Subject: [PATCH] ex00 min and max recieve const values --- ex00/whatever.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ex00/whatever.hpp b/ex00/whatever.hpp index 2883672..fe11558 100644 --- a/ex00/whatever.hpp +++ b/ex00/whatever.hpp @@ -6,7 +6,7 @@ /* By: aortigos -T min(T &x, T &y) +T min(T const &x, T const &y) { if (x < y) return (x); @@ -34,7 +34,7 @@ T min(T &x, T &y) } template -T max(T &x, T &y) +T max(T const &x, T const &y) { if (x > y) return (x);