pkgsrc/net/xorp/patches/patch-libxorp_ipnet.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

15 lines
408 B
C++

$NetBSD: patch-libxorp_ipnet.hh,v 1.1 2013/06/13 21:48:09 joerg Exp $
--- libxorp/ipnet.hh.orig 2013-06-13 18:24:26.000000000 +0000
+++ libxorp/ipnet.hh
@@ -107,6 +107,10 @@ public:
(masked_addr() == other.masked_addr()));
}
+ bool operator!=(const IPNet& other) const {
+ return !(*this == other);
+ }
+
/**
* Less-than comparison for subnets (see body for description).
*