]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/ixfrdist-web.cc
Replace boost's placeholders with the ones from the std namespace
[thirdparty/pdns.git] / pdns / ixfrdist-web.cc
index 485e720bcd8d2700be491a236f88feb1ed52b321..ebc456cedb371602cf12583e6dd8bfa7083ff3ca 100644 (file)
 #include "iputils.hh"
 #include "ixfrdist-stats.hh"
 
-string doGetStats();
-
 IXFRDistWebServer::IXFRDistWebServer(const ComboAddress &listenAddress, const NetmaskGroup &acl, const string &loglevel) :
   d_ws(std::unique_ptr<WebServer>(new WebServer(listenAddress.toString(), listenAddress.getPort())))
 {
   d_ws->setACL(acl);
   d_ws->setLogLevel(loglevel);
-  d_ws->registerWebHandler("/metrics", boost::bind(&IXFRDistWebServer::getMetrics, this, _1, _2));
+  d_ws->registerWebHandler("/metrics", std::bind(&IXFRDistWebServer::getMetrics, this, std::placeholders::_1, std::placeholders::_2));
   d_ws->bind();
 }