diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-03-19 13:06:48 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-03-19 13:06:48 +0100 |
commit | 9552aeeb1524d5b659ae209becb322b3d6763183 (patch) | |
tree | 96683ee48ad4ddaa48e734bd46efc663cdc106a4 | |
parent | d8b3cbb61d93228ec984befefa1abfb16555f12a (diff) |
add a missing non-const & Accessors to the Iterator class
-rw-r--r-- | apt-pkg/cacheiterators.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h index 28e062f3c..e2ca74683 100644 --- a/apt-pkg/cacheiterators.h +++ b/apt-pkg/cacheiterators.h @@ -62,6 +62,7 @@ template<typename Str, typename Itr> class pkgCache::Iterator { inline Str const *operator ->() const {return S;}; inline operator Str *() {return S == OwnerPointer() ? 0 : S;}; inline operator Str const *() const {return S == OwnerPointer() ? 0 : S;}; + inline Str &operator *() {return *S;}; inline Str const &operator *() const {return *S;}; inline pkgCache *Cache() {return Owner;}; |