From 950f68a3459f47aa7215ce2bd493ca9354194300 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 7 Mar 2016 02:05:29 +0100 Subject: Backport the fix from the last commit to C++98 I should have tested this before pushing it to git.debian.org, but accidentally did not. Gbp-Dch: ignore --- apt-pkg/algorithms.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc index 4fbeefd4a..864a0a7cb 100644 --- a/apt-pkg/algorithms.cc +++ b/apt-pkg/algorithms.cc @@ -991,7 +991,7 @@ bool pkgProblemResolver::ResolveInternal(bool const BrokenFix) if (Debug == true) clog << " Added " << Pkg.FullName(false) << " to the remove list" << endl; - KillList.push_back({Pkg, End}); + KillList.push_back((PackageKill) {Pkg, End}); if (Start.IsNegative() == false) break; @@ -1041,7 +1041,7 @@ bool pkgProblemResolver::ResolveInternal(bool const BrokenFix) // Apply the kill list now if (Cache[I].InstallVer != 0) { - for (auto J = KillList.begin(); J != KillList.end(); J++) + for (std::vector::const_iterator J = KillList.begin(); J != KillList.end(); J++) { Change = true; if ((Cache[J->Dep] & pkgDepCache::DepGNow) == 0) -- cgit v1.2.3