]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: Fix compilation of comfun (ambiguous make_unique call)
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 31 Oct 2019 09:53:30 +0000 (10:53 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 31 Oct 2019 09:53:54 +0000 (10:53 +0100)
pdns/comfun.cc

index 0f4bc90aee4ba727099b58369058856d4e954add..a2bf399f6a977e2c9d23d1cd573dc923ad76460a 100644 (file)
@@ -420,7 +420,7 @@ try
   }
   else if(mode=="scan-ns") {
     ifstream ns(string(argv[2])+".nameservers");
-    g_powerdns = make_unique<ofstream>(string(argv[2])+".powerdns");
+    g_powerdns = std::unique_ptr<ofstream>(new ofstream(string(argv[2])+".powerdns"));
     string line;
     int count=0;
     vector<string> parts;