]> granicus.if.org Git - pdns/commitdiff
dnsdist: Remove ambiguity between our make_unique and the C++14 one
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 29 Jul 2019 13:36:19 +0000 (15:36 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 7 Aug 2019 09:04:57 +0000 (11:04 +0200)
Since LGTM seems to be somehow compiling with C++14 enabled.

pdns/dnsdistdist/dnsdist-kvs.cc

index 51a33d202a479eb932b60150457b4678bf950c05..aba95cda5e872f84b82fce6e0ba8fbfb30b9bf0f 100644 (file)
@@ -101,7 +101,7 @@ CDBKVStore::CDBKVStore(const std::string& fname, time_t refreshDelay): d_fname(f
 
 bool CDBKVStore::reload(const struct stat& st)
 {
-  auto newCDB = make_unique<CDB>(d_fname);
+  auto newCDB = std::unique_ptr<CDB>(new CDB(d_fname));
   {
     WriteLock wl(&d_lock);
     d_cdb = std::move(newCDB);