diff options
Diffstat (limited to 'apt-pkg/contrib/srvrec.h')
-rw-r--r-- | apt-pkg/contrib/srvrec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h index 2adad03e9..920b6bb32 100644 --- a/apt-pkg/contrib/srvrec.h +++ b/apt-pkg/contrib/srvrec.h @@ -12,6 +12,7 @@ #include <arpa/nameser.h> #include <vector> #include <string> +#include <tuple> class SrvRec { @@ -29,6 +30,9 @@ class SrvRec bool operator<(SrvRec const &other) const { return this->priority < other.priority; } + bool operator==(SrvRec const &other) const { + return std::tie(target, priority, weight, port) == std::tie(other.target, other.priority, other.weight, other.port); + } SrvRec(std::string const Target, u_int16_t const Priority, u_int16_t const Weight, u_int16_t const Port) : |