From: Otto Date: Mon, 29 Mar 2021 15:10:30 +0000 (+0200) Subject: Fix make_unique to be c++11 compatibe, use explicit unique_ptr ct X-Git-Tag: rec-4.4.3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10240%2Fhead;p=thirdparty%2Fpdns.git Fix make_unique to be c++11 compatibe, use explicit unique_ptr ct --- diff --git a/pdns/recursordist/stable-bloom.hh b/pdns/recursordist/stable-bloom.hh index 947e92ed0c..343486cfbb 100644 --- a/pdns/recursordist/stable-bloom.hh +++ b/pdns/recursordist/stable-bloom.hh @@ -126,7 +126,7 @@ public: if (bitstr_len > 2 * 64 * 1024 * 1024U) { // twice the current size throw std::runtime_error("SBF: read failed (bitstr_len too big)"); } - unique_ptr bitcstr = make_unique(bitstr_len); + unique_ptr bitcstr = unique_ptr(new char[bitstr_len]); is.read(bitcstr.get(), bitstr_len); if (is.fail()) { throw std::runtime_error("SBF: read failed (file too short?)");