diff options
author | Max Kellermann <max@musicpd.org> | 2019-05-08 22:34:33 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-05-08 22:34:33 +0200 |
commit | a48604d2e3feed6d1d1484a91b269472fc5c5163 (patch) | |
tree | 75ad1545161162b8ecb0ba9483d78344c60ff443 | |
parent | 98e6a861ca9dccd0a9ce18e94a2960a93c256f67 (diff) |
util/SparseBuffer: remove bogus `noexcept` from constructor
The HugeArray constructor can throw std::bad_alloc, and so can
SparseBuffer's constructor.
-rw-r--r-- | src/util/SparseBuffer.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |