X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a38cec81d349525c447004ef8fe9dc942c8bd9bb..0cfec3ab589c6309bf284438d2148c7742cdaf10:/apt-pkg/depcache.h?ds=sidebyside diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index 99d0e7a63..03a2cb0a8 100644 --- a/apt-pkg/depcache.h +++ b/apt-pkg/depcache.h @@ -369,6 +369,7 @@ class pkgDepCache : protected pkgCache::Namespace // Accessors inline StateCache &operator [](PkgIterator const &I) {return PkgState[I->ID];}; + inline StateCache &operator [](PkgIterator const &I) const {return PkgState[I->ID];}; inline unsigned char &operator [](DepIterator const &I) {return DepState[I->ID];}; /** \return A function identifying packages in the root set other