aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/virtual_constructor-impl.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/virtual_constructor-impl.hh')
-rw-r--r--paludis/util/virtual_constructor-impl.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/paludis/util/virtual_constructor-impl.hh b/paludis/util/virtual_constructor-impl.hh
index 8612383..96a1643 100644
--- a/paludis/util/virtual_constructor-impl.hh
+++ b/paludis/util/virtual_constructor-impl.hh
@@ -23,6 +23,7 @@
#include <paludis/util/virtual_constructor.hh>
#include <paludis/util/stringify.hh>
#include <paludis/util/iterator.hh>
+#include <paludis/util/tr1_functional.hh>
#include <algorithm>
#include <vector>
@@ -147,8 +148,8 @@ namespace paludis
void
VirtualConstructor<KeyType_, ValueType_, NotFoundBehaviour_>::copy_keys(T_ out_iter) const
{
- std::copy(_entries_holder->entries.begin(), _entries_holder->entries.end(), TransformInsertIterator<
- T_, SelectFirst<KeyType_, ValueType_> >(out_iter));
+ std::copy(_entries_holder->entries.begin(), _entries_holder->entries.end(), transform_inserter(out_iter,
+ paludis::tr1::mem_fn(&std::pair<KeyType_, ValueType_>::first)));
}
}