diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-02 12:35:22 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-09-02 12:35:22 +0200 |
commit | c7609dd7a418428ffbca4c81a7950c4f53c92450 (patch) | |
tree | 4d372ae17816fbdad6351570ec48b204efc4a77a | |
parent | 22ac12b2c4060aa4dbbb2da07f4191d966738103 (diff) |
avoid triggering the c++11 erase api change on travis
Git-Dch: Ignore
-rw-r--r-- | apt-pkg/contrib/srvrec.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/srvrec.cc b/apt-pkg/contrib/srvrec.cc index 174668274..837f2c84e 100644 --- a/apt-pkg/contrib/srvrec.cc +++ b/apt-pkg/contrib/srvrec.cc @@ -168,8 +168,8 @@ SrvRec PopFromSrvRecs(std::vector<SrvRec> &Recs) #endif // shuffle in a very simplistic way for now (equal weights) - std::vector<SrvRec>::const_iterator I = Recs.begin(); - std::vector<SrvRec>::const_iterator const J = std::find_if(Recs.cbegin(), Recs.cend(), + std::vector<SrvRec>::iterator I = Recs.begin(); + std::vector<SrvRec>::iterator const J = std::find_if(Recs.begin(), Recs.end(), [&I](SrvRec const &J) { return I->priority != J.priority; }); // clock seems random enough. |