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--; }