From 486661d6c6ee64d9fc7e1298ea9d9f0917a3c614 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 18 Jul 2017 18:27:07 -0400 Subject: [PATCH] implement != --- libi2pd/Tag.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd/Tag.h b/libi2pd/Tag.h index 3d21183f..3977fd29 100644 --- a/libi2pd/Tag.h +++ b/libi2pd/Tag.h @@ -2,7 +2,7 @@ #define TAG_H__ /* -* Copyright (c) 2013-2016, The PurpleI2P Project +* Copyright (c) 2013-2017, The PurpleI2P Project * * This file is part of Purple i2pd project and licensed under BSD3 * @@ -28,6 +28,7 @@ public: Tag (const uint8_t * buf) { memcpy (m_Buf, buf, sz); } bool operator== (const Tag& other) const { return !memcmp (m_Buf, other.m_Buf, sz); } + bool operator!= (const Tag& other) const { return !(*this == other); } bool operator< (const Tag& other) const { return memcmp (m_Buf, other.m_Buf, sz) < 0; } uint8_t * operator()() { return m_Buf; }