From a48604d2e3feed6d1d1484a91b269472fc5c5163 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 May 2019 22:34:33 +0200 Subject: [PATCH] util/SparseBuffer: remove bogus `noexcept` from constructor The HugeArray constructor can throw std::bad_alloc, and so can SparseBuffer's constructor. --- src/util/SparseBuffer.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/SparseBuffer.hxx b/src/util/SparseBuffer.hxx index 5d72f34da..720e363cf 100644 --- a/src/util/SparseBuffer.hxx +++ b/src/util/SparseBuffer.hxx @@ -106,7 +106,7 @@ class SparseBuffer { SparseMap map; public: - explicit SparseBuffer(size_type size) noexcept + explicit SparseBuffer(size_type size) :buffer(size), map(size) { buffer.ForkCow(false); }