From 233f98125b9e0bc29ba603d94314211c2af75325 Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 22 Nov 2016 12:59:24 -0500 Subject: [PATCH] Fixed compile time error in random_subset_selector::swap() --- dlib/statistics/random_subset_selector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/statistics/random_subset_selector.h b/dlib/statistics/random_subset_selector.h index deb4ec374..8e1d72135 100644 --- a/dlib/statistics/random_subset_selector.h +++ b/dlib/statistics/random_subset_selector.h @@ -170,7 +170,7 @@ namespace dlib random_subset_selector& a ) { - a.swap(a.items); + items.swap(a.items); std::swap(_max_size, a._max_size); std::swap(count, a.count); rnd.swap(a.rnd);