From 5dfbb423d3fadbee68b20880c5ed6e5e936721dd Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Thu, 5 Oct 2023 11:02:49 +0000 Subject: [PATCH] ex00: vrai fix --- ex00/src/whatever.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ex00/src/whatever.hpp b/ex00/src/whatever.hpp index 229174d..6738f6a 100644 --- a/ex00/src/whatever.hpp +++ b/ex00/src/whatever.hpp @@ -1,7 +1,7 @@ #pragma once template -void swap(T a, T b) +void swap(T& a, T& b) { T tmp = a; a = b; @@ -9,13 +9,13 @@ void swap(T a, T b) } template -T min(T a, T b) +T min(const T& a, const T& b) { return a > b ? b : a; } template -T max(T a, T b) +T max(const T& a, const T& b) { return a > b ? a : b; }