diff --git a/include/ptlib/contain.inl b/include/ptlib/contain.inl
index 39a9823..5ebeb3b 100644
--- a/include/ptlib/contain.inl
+++ b/include/ptlib/contain.inl
@@ -116,9 +116,15 @@ PINLINE PString & PString::operator&=(const PString & str)
PINLINE bool PString::operator==(const PObject & obj) const
{ return PObject::operator==(obj); }
+PINLINE bool PString::operator==(const PString & obj) const
+ { return PObject::operator==(obj); }
+
PINLINE bool PString::operator!=(const PObject & obj) const
{ return PObject::operator!=(obj); }
+PINLINE bool PString::operator!=(const PString & obj) const
+ { return PObject::operator!=(obj); }
+
PINLINE bool PString::operator<(const PObject & obj) const
{ return PObject::operator<(obj); }
diff --git a/include/ptlib/pstring.h b/include/ptlib/pstring.h
index c6cca94..3a3123b 100644
--- a/include/ptlib/pstring.h
+++ b/include/ptlib/pstring.h
@@ -828,6 +828,17 @@ class PString : public PCharArray
const PObject & str ///< PString object to compare against.
) const;
+ /**Compare two strings using the PObject::Compare()
function. This
+ is identical to the PObject
class function but is necessary due
+ to other overloaded versions.
+
+ @return
+ true if equal.
+ */
+ bool operator==(
+ const PString & str ///< PString object to compare against.
+ ) const;
+
/**Compare two strings using the PObject::Compare()
function. This
is identical to the PObject
class function but is necessary due
to other overloaded versions.
@@ -839,6 +850,17 @@ class PString : public PCharArray
const PObject & str ///< PString object to compare against.
) const;
+ /**Compare two strings using the PObject::Compare()
function. This
+ is identical to the PObject
class function but is necessary due
+ to other overloaded versions.
+
+ @return
+ true if not equal.
+ */
+ bool operator!=(
+ const PString & str ///< PString object to compare against.
+ ) const;
+
/**Compare two strings using the PObject::Compare()
function. This
is identical to the PObject
class function but is necessary due
to other overloaded versions.