Add operator!= for dcp::VerificationNote.
authorCarl Hetherington <cth@carlh.net>
Sun, 7 Jan 2024 22:36:27 +0000 (23:36 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 14 Apr 2024 20:48:35 +0000 (22:48 +0200)
src/verify.cc
src/verify.h

index 8d06f9fa2f39f434ab9a87fafe327a935986a84d..ba0007db5e754e13d8af428c5601769f92bf23a4 100644 (file)
@@ -2162,6 +2162,13 @@ dcp::operator== (dcp::VerificationNote const& a, dcp::VerificationNote const& b)
 }
 
 
+bool
+dcp::operator!=(dcp::VerificationNote const& a, dcp::VerificationNote const& b)
+{
+       return !(a == b);
+}
+
+
 bool
 dcp::operator< (dcp::VerificationNote const& a, dcp::VerificationNote const& b)
 {
index 8f6ef18f0f2cb58aae6389121f166f269ae548ac..2adb47d218bb23eddb78ec21928488c14d7b252e 100644 (file)
@@ -671,6 +671,7 @@ std::vector<VerificationNote> verify (
 std::string note_to_string (dcp::VerificationNote note);
 
 bool operator== (dcp::VerificationNote const& a, dcp::VerificationNote const& b);
+bool operator!=(dcp::VerificationNote const& a, dcp::VerificationNote const& b);
 bool operator< (dcp::VerificationNote const& a, dcp::VerificationNote const& b);
 
 std::ostream& operator<<(std::ostream& s, dcp::VerificationNote const& note);