Commit a48604d2 authored by Max Kellermann's avatar Max Kellermann

util/SparseBuffer: remove bogus `noexcept` from constructor

The HugeArray constructor can throw std::bad_alloc, and so can SparseBuffer's constructor.
parent 98e6a861
...@@ -106,7 +106,7 @@ class SparseBuffer { ...@@ -106,7 +106,7 @@ class SparseBuffer {
SparseMap map; SparseMap map;
public: public:
explicit SparseBuffer(size_type size) noexcept explicit SparseBuffer(size_type size)
:buffer(size), map(size) { :buffer(size), map(size) {
buffer.ForkCow(false); buffer.ForkCow(false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment