summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-05-29 15:44:47 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-05-29 15:44:47 +0200
commitb3fdb998016beb8bf3d8bedb3ad6218f9050eece (patch)
tree6077ca9e581dcbc8c3545d6305c140063f22d55d /apt-pkg
parente1430400bf012ab7e29b00c78796a14ce9f97107 (diff)
* apt-pkg/cacheiterator.h:
- let pkgCache::Iterator inherent std::iterator
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/cacheiterators.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h
index e2ca74683..3d58f7ec0 100644
--- a/apt-pkg/cacheiterators.h
+++ b/apt-pkg/cacheiterators.h
@@ -29,10 +29,12 @@
/*}}}*/
#ifndef PKGLIB_CACHEITERATORS_H
#define PKGLIB_CACHEITERATORS_H
+#include<iterator>
// abstract Iterator template /*{{{*/
/* This template provides the very basic iterator methods we
need to have for doing some walk-over-the-cache magic */
-template<typename Str, typename Itr> class pkgCache::Iterator {
+template<typename Str, typename Itr> class pkgCache::Iterator :
+ public std::iterator<std::forward_iterator_tag, Str> {
protected:
Str *S;
pkgCache *Owner;