aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-06 18:36:09 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-06 18:36:09 +0000
commitbe44842a4a76f7e96af07879b6b29be9b506dea5 (patch)
tree83259648d86381d68f4cfcb707f98f3887420265
parent479d37420c085a74b5037b2d0bd6910760d576d1 (diff)
downloadpaludis-be44842a4a76f7e96af07879b6b29be9b506dea5.tar.gz
paludis-be44842a4a76f7e96af07879b6b29be9b506dea5.tar.xz
g++ 4.1 is retarded
-rw-r--r--paludis/portage_repository.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/paludis/portage_repository.cc b/paludis/portage_repository.cc
index e0cac00..fd838b0 100644
--- a/paludis/portage_repository.cc
+++ b/paludis/portage_repository.cc
@@ -2216,8 +2216,13 @@ PortageRepository::info(bool verbose) const
else
{
std::set<VersionSpec> versions;
- std::transform(q->begin(), q->end(), std::inserter(versions, versions.end()),
- std::mem_fun_ref(&PackageDatabaseEntry::get<pde_version>));
+
+ /* don't use std::transform, it breaks g++4.1 */
+ // std::transform(q->begin(), q->end(), std::inserter(versions, versions.end()),
+ // std::mem_fun_ref(&PackageDatabaseEntry::get<pde_version>));
+ for (PackageDatabaseEntryCollection::Iterator qq(q->begin()), qq_end(q->end()) ;
+ qq != qq_end ; ++qq)
+ versions.insert(qq->get<pde_version>());
package_info.add_kv(*i, join(versions.begin(), versions.end(), ", "));
}
}