This makes non-C++11 reverse deps wishing to use it FTBFS.
#include <time.h>
#include <algorithm>
#include <time.h>
#include <algorithm>
#include <apt-pkg/configuration.h>
#include <apt-pkg/error.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/error.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<SrvRec> &Result)
{
std::string target;
bool GetSrvRecords(std::string host, int port, std::vector<SrvRec> &Result)
{
std::string target;
#include <arpa/nameser.h>
#include <vector>
#include <string>
#include <arpa/nameser.h>
#include <vector>
#include <string>
bool operator<(SrvRec const &other) const {
return this->priority < other.priority;
}
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) :
SrvRec(std::string const Target, u_int16_t const Priority,
u_int16_t const Weight, u_int16_t const Port) :