* apt-pkg/cacheiterator.h:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 29 May 2010 13:44:47 +0000 (15:44 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 29 May 2010 13:44:47 +0000 (15:44 +0200)
  - let pkgCache::Iterator inherent std::iterator

apt-pkg/cacheiterators.h
debian/changelog

index e2ca746..3d58f7e 100644 (file)
                                                                        /*}}}*/
 #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;
index 1fa254b..839c8c8 100644 (file)
@@ -16,8 +16,10 @@ apt (0.7.26~exp6) UNRELEASED; urgency=low
     - add a constant Exists check for MetaKeys
   * apt-pkg/acquire-item.cc:
     - do not try PDiff if it is not listed in the Meta file
+  * apt-pkg/cacheiterator.h:
+    - let pkgCache::Iterator inherent std::iterator
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 29 May 2010 12:03:20 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 29 May 2010 15:39:07 +0200
 
 apt (0.7.26~exp5) experimental; urgency=low