summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2010-05-09 20:14:26 -0700
committerDaniel Burrows <dburrows@debian.org>2010-05-09 20:14:26 -0700
commitd2fce8a51e806b41a647410b087797b1aa0575a9 (patch)
tree664ddea974bd151ceb1d886c8ef8e77e7a68ea32
parent51b820bbf4d618231d7abe7ae1c6acc8a1bbfe00 (diff)
downloadaptitude-d2fce8a51e806b41a647410b087797b1aa0575a9.tar.gz
Move the values_iterator typedef to the top of the class, make it public, and define it in terms of the collection typedef.
-rw-r--r--src/generic/util/dynamic_set_union.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/generic/util/dynamic_set_union.h b/src/generic/util/dynamic_set_union.h
index d8cc5d01..19de891c 100644
--- a/src/generic/util/dynamic_set_union.h
+++ b/src/generic/util/dynamic_set_union.h
@@ -190,9 +190,13 @@ namespace aptitude
class dynamic_set_union<T>::set_enumerator
: public enumerator<T>
{
- boost::shared_ptr<dynamic_set<T> > parent;
- typedef typename boost::unordered_map<T, int>::const_iterator values_iterator;
+ public:
+ typedef
+ typename dynamic_set_union<T>::value_counts_t::const_iterator
+ values_iterator;
+ private:
+ boost::shared_ptr<dynamic_set<T> > parent;
values_iterator begin, end;
bool is_first;