From: Remi Gacogne Date: Mon, 29 Jul 2019 13:36:19 +0000 (+0200) Subject: dnsdist: Remove ambiguity between our make_unique and the C++14 one X-Git-Tag: dnsdist-1.4.0-rc2~9^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d1510ae24a13fe1d6a9bc760029c7e85807b5a8;p=pdns dnsdist: Remove ambiguity between our make_unique and the C++14 one Since LGTM seems to be somehow compiling with C++14 enabled. --- diff --git a/pdns/dnsdistdist/dnsdist-kvs.cc b/pdns/dnsdistdist/dnsdist-kvs.cc index 51a33d202..aba95cda5 100644 --- a/pdns/dnsdistdist/dnsdist-kvs.cc +++ b/pdns/dnsdistdist/dnsdist-kvs.cc @@ -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(d_fname); + auto newCDB = std::unique_ptr(new CDB(d_fname)); { WriteLock wl(&d_lock); d_cdb = std::move(newCDB);