diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-07 23:36:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-14 22:48:35 +0200 |
| commit | d5aa7509cd1b50be5b6a929e00a2572b30585629 (patch) | |
| tree | a2e0ce431ff764f7b4fd14800397b8787422f686 /src | |
| parent | 73913fea96a32df5bb8a4b439844839e7828af21 (diff) | |
Add operator!= for dcp::VerificationNote.
Diffstat (limited to 'src')
| -rw-r--r-- | src/verify.cc | 7 | ||||
| -rw-r--r-- | src/verify.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc index 8d06f9fa..ba0007db 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -2163,6 +2163,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) { if (a.type() != b.type()) { 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<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); |
