From d5aa7509cd1b50be5b6a929e00a2572b30585629 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 7 Jan 2024 23:36:27 +0100 Subject: Add operator!= for dcp::VerificationNote. --- src/verify.cc | 7 +++++++ src/verify.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/verify.cc b/src/verify.cc index 8d06f9fa..ba0007db 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -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) { diff --git a/src/verify.h b/src/verify.h index 8f6ef18f..2adb47d2 100644 --- a/src/verify.h +++ b/src/verify.h @@ -671,6 +671,7 @@ std::vector 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); -- cgit v1.2.3