Another fix for CPPXT-40.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Fri, 25 Sep 2009 15:59:19 +0000 (15:59 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Fri, 25 Sep 2009 15:59:19 +0000 (15:59 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@647 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/Namespace.cpp
xmltooling/Namespace.h

index 38f1f74..ebb942f 100644 (file)
@@ -63,3 +63,9 @@ bool xmltooling::operator<(const Namespace& op1, const Namespace& op2)
     else
         return false;
 }
+
+bool xmltooling::operator==(const Namespace& op1, const Namespace& op2)
+{
+    return (XMLString::equals(op1.getNamespacePrefix(), op2.getNamespacePrefix()) &&
+            XMLString::equals(op1.getNamespaceURI(), op2.getNamespaceURI()));
+}
index a948477..16ff035 100644 (file)
@@ -105,14 +105,12 @@ namespace xmltooling {
      */
     extern XMLTOOL_API bool operator<(const Namespace& op1, const Namespace& op2);
 
-#ifndef HAVE_GOOD_STL
     /**
      * Returns true iff op1's namespace and prefix are equal to op2's namespace and prefix.
      * @param op1   First namspace to compare
      * @param op2   Second namespace to compare
      */
     extern XMLTOOL_API bool operator==(const Namespace& op1, const Namespace& op2);
-#endif
 
 };