Support NONE policy in storage
[platform/core/security/cynara.git] / src / common / types / PolicyResult.h
index a9369d8..0e0c716 100644 (file)
@@ -60,9 +60,17 @@ public:
         return std::tie(m_type, m_metadata) == std::tie(other.m_type, other.m_metadata);
     }
 
+    bool operator !=(const PolicyResult &other) const {
+        return !(*this == other);
+    }
+
     bool operator ==(const PolicyType &policyType) const {
         return (m_type == policyType) && m_metadata.empty();
     }
+
+    bool operator !=(const PolicyType &policyType) const {
+        return !(*this == policyType);
+    }
 };
 
 } // namespace Cynara