pkgsrc/net/xorp/patches/patch-libxorp_vif.hh
joerg 3d75da359e Don't use rel_ops, it can create ambiguity for types that define more
than the minimal operator set. Rename out_of_range.
2013-06-13 21:48:09 +00:00

14 lines
410 B
C++

$NetBSD: patch-libxorp_vif.hh,v 1.1 2013/06/13 21:48:09 joerg Exp $
--- libxorp/vif.hh.orig 2013-06-13 18:49:34.000000000 +0000
+++ libxorp/vif.hh
@@ -168,6 +168,9 @@ public:
* right-hand operand.
*/
bool operator==(const VifAddr& other) const;
+ bool operator!=(const VifAddr& other) const {
+ return !(*this == other);
+ }
private:
IPvX _addr; // IP address of the vif