]> granicus.if.org Git - pdns/commitdiff
dnsdist: tuple requires make_tuple to initialize
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 26 Aug 2016 15:52:48 +0000 (17:52 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 26 Aug 2016 15:52:48 +0000 (17:52 +0200)
Fix compilation on Ubuntu Xenial.
Reported by Christof Chen (thanks!).

pdns/dnsdist-dynbpf.cc

index d0049d69cefd46ac7539c47f54359b5af9c1dbb0..5550931e5ecf297f2ade395627571c92226fe09d 100644 (file)
@@ -69,7 +69,7 @@ std::vector<std::tuple<ComboAddress, uint64_t, struct timespec> > DynBPFFilter::
   for (const auto& stat : stats) {
     const container_t::iterator it = d_entries.find(stat.first);
     if (it != d_entries.end()) {
-      result.push_back({stat.first, stat.second, it->d_until});
+      result.push_back(std::make_tuple(stat.first, stat.second, it->d_until));
     }
   }
   return result;