X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/308d0cf53f4b7ad1750fb1efb42b908c8e336b9f..d27daedb6a0bf672508072100f20233d08ccf0e0:/apt-pkg/contrib/srvrec.cc?ds=sidebyside diff --git a/apt-pkg/contrib/srvrec.cc b/apt-pkg/contrib/srvrec.cc index 9af282653..be159bad9 100644 --- a/apt-pkg/contrib/srvrec.cc +++ b/apt-pkg/contrib/srvrec.cc @@ -16,6 +16,7 @@ #include #include +#include #include #include @@ -25,6 +26,12 @@ #include "srvrec.h" +bool SrvRec::operator==(SrvRec const &other) const +{ + return (std::tie(target, priority, weight, port) == + std::tie(other.target, other.priority, other.weight, other.port)); +} + bool GetSrvRecords(std::string host, int port, std::vector &Result) { std::string target;