From c30264257a404e831a0127e87212ed6b695aa43d Mon Sep 17 00:00:00 2001 From: incredibleLeitman Date: Sat, 17 Oct 2020 23:16:42 +0200 Subject: [PATCH] using custom swap instead of std::swap --- Wirth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wirth.h b/Wirth.h index f609491..6196cb6 100644 --- a/Wirth.h +++ b/Wirth.h @@ -17,7 +17,7 @@ uint32_t getWirthKthSmallest(std::vector a, uint32_t k) while (x < a[j]) j--; if (i <= j) { - std::swap(a[i], a[j]); + swap(&a[i], &a[j]); i++; j--; }