]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/srvrec.h
fix "Mismatched free() / delete / delete []" in simple_buffer
[apt.git] / apt-pkg / contrib / srvrec.h
index 920b6bb3249a162dfb605b7912f04c8755329e1d..01b810281b0c16ffe091da5be94a9f32d0bbecb3 100644 (file)
@@ -12,7 +12,6 @@
 #include <arpa/nameser.h>
 #include <vector>
 #include <string>
-#include <tuple>
 
 class SrvRec
 {
@@ -30,9 +29,7 @@ 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);
-   }
+   bool operator==(SrvRec const &other) const;
 
    SrvRec(std::string const Target, u_int16_t const Priority,
         u_int16_t const Weight, u_int16_t const Port) :