summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-05-08 22:34:33 +0200
committerMax Kellermann <max@musicpd.org>2019-05-08 22:34:33 +0200
commita48604d2e3feed6d1d1484a91b269472fc5c5163 (patch)
tree75ad1545161162b8ecb0ba9483d78344c60ff443
parent98e6a861ca9dccd0a9ce18e94a2960a93c256f67 (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.hxx2
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);
}