]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Keep on using boost::tuple, switching to std::tuple introduces
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 4 Nov 2020 13:09:19 +0000 (14:09 +0100)
committerOtto Moerbeek <otto@drijf.net>
Tue, 10 Nov 2020 12:34:16 +0000 (13:34 +0100)
a few issues.

pdns/ixfrutils.cc
pdns/namespaces.hh

index 9d94c821508de0e384c14beff90d75a194fae5fa..096d77e1dffd9c54d230a9e9bd6431b2cac82801 100644 (file)
@@ -94,7 +94,7 @@ uint32_t getSerialFromRecords(const records_t& records, DNSRecord& soaret)
 {
   uint16_t t=QType::SOA;
 
-  auto found = records.equal_range(tie(g_rootdnsname, t));
+  auto found = records.equal_range(boost::tie(g_rootdnsname, t));
 
   for(auto iter = found.first; iter != found.second; ++iter) {
     auto soa = std::dynamic_pointer_cast<SOARecordContent>(iter->d_content);
index b0bf01c8f62f5ee5d2bd345bfe21fd26f7749e91..4cdf8f7f821c88367b7942c714f7266271a9709f 100644 (file)
@@ -21,6 +21,7 @@
  */
 #pragma once
 
+#include <boost/tuple/tuple.hpp>
 #include <boost/format.hpp>
 #include <boost/optional.hpp>
 #include <iostream>
 #include <memory>
 #include <set>
 #include <string>
-#include <tuple>
 #include <vector>
 
+// We have a few paces where boost::tuple is used, and other places where an unscoped tuple is used
+// use the boost one for now. We might want to switch to std::tuple  one day.
+using boost::make_tuple;
+using boost::tuple;
+
 using std::cerr;
 using std::clog;
 using std::cout;
 using std::endl;
 using std::ifstream;
 using std::make_pair;
-using std::make_tuple;
 using std::map;
 using std::max;
 using std::min;
@@ -50,6 +54,5 @@ using std::set;
 using std::shared_ptr;
 using std::string;
 using std::tie;
-using std::tuple;
 using std::unique_ptr;
 using std::vector;