From 851a45a85fa486abc642e10f19afef11f621c29d Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:57:57 +0000 Subject: G++3 fixes from Randolph Author: jgg Date: 2001-05-14 05:47:30 GMT G++3 fixes from Randolph --- apt-pkg/version.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'apt-pkg/version.h') diff --git a/apt-pkg/version.h b/apt-pkg/version.h index 27e8e1f1b..4c37ba8f8 100644 --- a/apt-pkg/version.h +++ b/apt-pkg/version.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: version.h,v 1.6 2001/02/20 07:03:17 jgg Exp $ +// $Id: version.h,v 1.7 2001/05/14 05:58:33 jgg Exp $ /* ###################################################################### Version - Versioning system.. @@ -26,6 +26,8 @@ #include +using std::string; + class pkgVersioningSystem { public: @@ -39,6 +41,7 @@ class pkgVersioningSystem // Compare versions.. virtual int DoCmpVersion(const char *A,const char *Aend, const char *B,const char *Bend) = 0; + virtual bool CheckDep(const char *PkgVer,int Op,const char *DepVer) = 0; virtual int DoCmpReleaseVer(const char *A,const char *Aend, const char *B,const char *Bend) = 0; @@ -55,7 +58,7 @@ class pkgVersioningSystem }; inline int CmpVersion(string A,string B) { - return DoCmpVersion(A.begin(),A.end(),B.begin(),B.end()); + return DoCmpVersion(A.c_str(),A.c_str()+A.length(),B.c_str(),B.c_str()+B.length()); }; inline int CmpReleaseVer(const char *A, const char *B) { @@ -63,7 +66,7 @@ class pkgVersioningSystem }; inline int CmpReleaseVer(string A,string B) { - return DoCmpReleaseVer(A.begin(),A.end(),B.begin(),B.end()); + return DoCmpReleaseVer(A.c_str(),A.c_str()+A.length(),B.c_str(),B.c_str()+B.length()); }; pkgVersioningSystem(); -- cgit v1.2.3-70-g09d2