From ed44e42ba7733bce5a7a8dc1b6743f5a0a926202 Mon Sep 17 00:00:00 2001 From: Otto Date: Mon, 29 Mar 2021 17:10:30 +0200 Subject: [PATCH] Fix make_unique to be c++11 compatibe, use explicit unique_ptr ct --- pdns/recursordist/stable-bloom.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?)"); -- 2.47.2