aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-21 08:01:54 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-21 08:01:54 +0000
commitf9037864e60f831804503a9a3457ce64d6c54ce7 (patch)
tree051833dad1c2d34e9c8ef7c354ef9adcf67c6b06
parent1e2a6ebd0f86da19f8e5ce16ad152f06e6efe169 (diff)
downloadpaludis-f9037864e60f831804503a9a3457ce64d6c54ce7.tar.gz
paludis-f9037864e60f831804503a9a3457ce64d6c54ce7.tar.xz
Fix 4.4 compile
-rw-r--r--paludis/repositories/e/e_repository.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 0c9f436..df5b023 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -681,7 +681,8 @@ ERepository::need_mirrors() const
{
/* pick up to five random mirrors only */
std::mt19937 random(std::time(0));
- std::random_shuffle(next(ee.begin()), ee.end(), Randomator{random});
+ Randomator randomator{random};
+ std::random_shuffle(next(ee.begin()), ee.end(), randomator);
if (ee.size() > 6)
ee.resize(6);