diff options
author | Julian Andres Klode <jak@debian.org> | 2015-10-30 14:44:52 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-10-30 14:44:52 +0100 |
commit | 3129bd50d30dad985764436f147ad44bc54f2005 (patch) | |
tree | b084821292a7525de68213ade327139ce6220ddb /apt-pkg/contrib/srvrec.h | |
parent | 2a0cae347a058f0cc5d81477f75ed0c12b1e54e3 (diff) |
srvrec: Do not expose C++11 tuple use in header
This makes non-C++11 reverse deps wishing to use it FTBFS.
Diffstat (limited to 'apt-pkg/contrib/srvrec.h')
-rw-r--r-- | apt-pkg/contrib/srvrec.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h index 920b6bb32..01b810281 100644 --- a/apt-pkg/contrib/srvrec.h +++ b/apt-pkg/contrib/srvrec.h @@ -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) : |